04.05.2011, 22:16
pawn Код:
COMMAND:eject(playerid, params[])
{
if(ALygis[playerid] < 1) return SendClientMessage(playerid,raudona,"[FunZoneLT]>> Jus negalite naudoti sitos komandos.");
new zaidejoid;
if(sscanf(params,"u",zaidejoid)) return SendClientMessage(playerid,orandzine,"{FBDF89}[FunZoneLT]>> /eject [zaidejoid]");
if(!IsPlayerConnected(zaidejoid)) return SendClientMessage(playerid, raudona, "[FunZoneLT]>> Tokio zaidejo nera.");
if(!IsPlayerInAnyVehicle(zaidejoid)) return SendClientMessage(playerid, raudona, "[FunZoneLT]>> Zaidejas ne masinoje!");
new string[100], zvardas[MAX_PLAYER_NAME], vardas[MAX_PLAYER_NAME];
GetPlayerName(zaidejoid, zvardas, sizeof(zvardas));
GetPlayerName(playerid, vardas, sizeof(vardas));
format(string, sizeof(string), "[FunZoneLT]>> Tu ismetei, %s is masinos.", zvardas);
SendClientMessage(playerid, COLOR_LIMEGREEN, string);
format(string, sizeof(string), "[FunZoneLT]>> Tave ismete is masinos %s.", vardas);
SendClientMessage(zaidejoid, COLOR_LIMEGREEN, string);
RemovePlayerFromVehicle(zaidejoid);
return 1;
}