25.05.2010, 03:26
pawn Код:
if(strcmp(cmd, "/sair", true) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
new Float:jpos[3];
GetPlayerPos(playerid, jpos[0], jpos[1], jpos[2]);
SetPlayerPos(playerid, jpos[0], jpos[1], jpos[2]+3.0);
}
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-3000);
NaoPodeSair[playerid] = 0;
SetPlayerInterior(playerid,0);
SpawnPlayer(playerid);
return 1;
}