30.07.2011, 19:23
Hello, i made a teleport command, but now i want to make it only accesible when a player isn't on a wanted level.
Here is the example how i made the standard teleport:
if (strcmp("/test", cmdtext, true, 10) == 0)
{
Pause(playerid);
SetPlayerPos(playerid, -1944.96, 515.19, 202.2;
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string),"%s is joining test", playername);
SendClientMessageToAll(0xDEEE20FF, string);
return 1;
}
Someone please could help me out and knows a clue how to do this?
I'm very pleased about your help.
Here is the example how i made the standard teleport:
if (strcmp("/test", cmdtext, true, 10) == 0)
{
Pause(playerid);
SetPlayerPos(playerid, -1944.96, 515.19, 202.2;
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string),"%s is joining test", playername);
SendClientMessageToAll(0xDEEE20FF, string);
return 1;
}
Someone please could help me out and knows a clue how to do this?
I'm very pleased about your help.