26.06.2013, 10:55
Hey guys, I made a teleport command script which teleports you to the co-ordinates you chose.
It's not working, please help me to find the mistake and how I can fix it?
Thanks in advance, volcaN131.
PHP код:
if(strcmp(cmd, "/xgoto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 5)
{
SendClientMessage(playerid,COLOR_GRAD2,"Permission Denied.");
return 1;
}
}
new Float:x, Float:y, Float:z;
new string[100];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Usage: /xgoto <X Float> <Y Float> <Z Float>");
return 1;
}
return 1;
}
Thanks in advance, volcaN131.