06.11.2009, 10:50
Quote:
Originally Posted by Pinny
Use a command like this
Код:
if (strcmp("/exit", cmdtext, true, 10) == 0) { //SETS THEIR POS SOMEWHERE, or where ever you want them to teleport back to. this is just an example. SetPlayerPos(playerid,2352.0007,-1168.8942,27.9879); SetPlayerInterior(playerid, 0); return 1; } |
--edit: I figured it out, it had to be like this:
Код:
if(strcmp("/exit", cmdtext, true, 10) == 0) { if(PlayerData[playerid][InDM] == 1) return 1; { TogglePlayerControllable(playerid,true); SetCameraBehindPlayer(playerid); SpawnPlayer(playerid); PlayerData[playerid][InDM] = 0; SendClientMessage(playerid,COLOR_YELLOW,"You have left the death match"); return 0; } }