11.08.2014, 07:17
Hello everyone.
I made this command :
But when i entered the server to use it, Before i login to my RCON, I typed /tower.
Then my position changed and my world changed too.
But, I want the command to work only if i'm logged in RCON.
Can you tell me what to do or what is the wrong in this command?
I made this command :
Код HTML:
if(strcmp("/tower",cmdtext,true) == 0) { if(IsPlayerAdmin(playerid)) return 0; SetPlayerPos(playerid,1543.8469,-1353.4261,329.4741); SetPlayerVirtualWorld(playerid, 5) ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 46); SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); return 1; }
Then my position changed and my world changed too.
But, I want the command to work only if i'm logged in RCON.
Can you tell me what to do or what is the wrong in this command?