Jump to content

[ HLED�M ] /Setloc


Noob14_

Recommended Posts

Vytvor si globálne premenné,v príkaze "setloc" zisti hráčovu pozíciu (GetPlayerPos) a ulož ju do premenných.

Potom už len z tích premenných nastavuj pozíciu ostatným (SetPlayerPos).

Celý kod ti nedám,musíš sa snažiť ak sa chceš pawn naučiť.

Link to comment
Share on other sites

Vytvor si globálne premenné,v príkaze "setloc" zisti hráčovu pozíciu (GetPlayerPos) a ulož ju do premenných.

Potom už len z tích premenných nastavuj pozíciu ostatným (SetPlayerPos).

Celý kod ti nedám,musíš sa snažiť ak sa chceš pawn naučiť.

 

Omg -_- to chceš server zasírat cyklusem & Globalní proměnou ? Stačí ti uplne  normalní promena . . .

Link to comment
Share on other sites


#include <zcmd> // To je neuveritelne lalin, ze sa spytas na daco take..

new Float:gx = 0.000000, Float:gy, Float: gz;

command(setloc, playerid, params[]) {
GetPlayerPos(playerid, gx, gy, gz);
SendClientMessageToAll(0x00FFAAFF, "Môžete použiť /port!");
return 1;
}

command(port, playerid, params[]) {
if (gx != 0.000000)
SetPlayerPos(playerid, gx, gy, gz);
else
SendClientMessage(playerid, 0xFF0000FF, "Najprv musí niekto použiť /setloc!");
return 1;
}

 

Edited by Tango
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...