16.11.2012, 15:02
guys i made a dm teleport and i just need to know how to disable the player to teleport if he is inside the DM? so he wont teleport to any place and kill the people in the server - btw here is my code to the teleport
Код:
GivePlayerWeapon(playerid, 38, 50000000); new pName[24]; new str[128]; GetPlayerName(playerid, pName, 24); format(str, 128, "%s has teleported to /mgdm", pName); SendClientMessageToAll(0xFF9900AA, str); new Random = random(sizeof(RandomSpawns)); SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]); SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);