17.03.2013, 22:54
pawn Код:
dcmd_lobby (playerid, params[])
{
#pragma unused params
if (!Players[playerid][Derby]) return SendClientMessage(playerid, ERROR_COLOR, "ERROR MESSAGE");
format(cmdstr, 150, ">> %s has left the Derby", Players[playerid][Name]);
SendClientMessageToAll(DERBY_COLOR, cmdstr); }
if(IsPlayerInAnyVehicle(playerid))
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x,y,z);
SetPlayerPos(playerid, x,y,z+3);
Players[playerid][Derby] = false;
SpawnPlayer(playerid);
}
else
{
Players[playerid][Derby] = false;
SpawnPlayer(playerid);
}
return 1;
}