18.09.2009, 11:50
Код:
if(!strcmp(cmd, "/eject", true)) { new Float:pX,Float:pY,Float:pZ; SendPlayerFormattedText(playerid,":::::::::::::::::::::::::::::::::::::::::::::::",0); SendClientMessage(playerid, COLOR_YELLOW , "EMERGENCY EXIT activated"); SendPlayerFormattedText(playerid,":::::::::::::::::::::::::::::::::::::::::::::::",0); new name[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "[!] %s used emergency exit (/eject) to outrun death. [!]", name ); SendClientMessageToAll(RED, string); GetPlayerPos(giveplayerid,pX,pY,pZ); SetPlayerPos(giveplayerid,pX,pY,pZ+10); GivePlayerWeapon(playerid, 46, 1); return 1; }