Posts: 297
Threads: 22
Joined: Apr 2010
Reputation:
0
Lol? This isnґt a script. This is just a little basic command.
And this comand exist 1.000 times.
Well if this is your first "script" I must say you must learn a lot I guess xDD
Posts: 54
Threads: 10
Joined: Mar 2010
Reputation:
0
That ejects only you. 1/10
Posts: 490
Threads: 122
Joined: Feb 2010
Reputation:
0
noo, it didnt happen to me
Posts: 2,938
Threads: 162
Joined: May 2010
or.
Код:
dcmd(eject,5,cmdtext);
Код:
dcmd_eject(playerid,params[]) {
#pragma unused params
if(IsPlayerConnected(playerid)){
if(!strlen(params)) return SendClientMessage(playerid, COLOR_WHITE, "[USAGE]: /eject [Player/ID]");
new giveplayerid = ReturnUser(params);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && IsPlayerInVehicle(giveplayerid, GetPlayerVehicleID(playerid))){
if(IsPlayerConnected(giveplayerid) && playerid != giveplayerid){
SendFormattedMessage(playerid,ORANGE,"[EJECT]: You have ejected %s(%i)from your vehicle.", GetName(giveplayerid), giveplayerid);
SendFormattedMessage(giveplayerid,ORANGE,"[EJECT]: You got ejected from %s's(%d) vehicle.", GetName(playerid), playerid);
RemovePlayerFromVehicle(giveplayerid);} }
}
return true;
}
should work