Helpful thing
#1

This is my first script i made and its tested + working. It removes whoever in ur car like /eject [id]. If you have problems add tanush-thebest10@hotmail.com

http://pastebin.com/WnjTLP7X
Reply
#2

edit, the new web is http://pastebin.com/3YxYneDC < < WEB
Reply
#3

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
Reply
#4

That ejects only you. 1/10
Reply
#5

Try this :
pawn Код:
new playerid2;
new Float:x, Float:y, Float:z;
CMD:eject(playerid, params[])
{
 if(sscanf(params, "u", playerid2)) SendClientMessage(playerid, Color, "USAGE : /eject [playerid]");
 else if(playerid2 == INVALID_PLAYER_ID) SendClientMessage(Playerid, Color, "ERROR : That player is not connected!");
 else if(IsPlayerInAnyVehicle(playerid2, GetPlayerVehicleID(playerid)) == 0) SendClientMessage(playerid, Color, "ERROR : That player is not in your vehicle!");
 {
 GetPlayerPos(playerid2, x, y, z);
 SetPlayerPos(playerid2, x+3, y, z);
 SendClientMessage(playerid2, Color, "You have been ejected!");
 }
 return 1;
}
Sorry but I'm to tired to make it better, but thats an example
on how to do it.

Note : You need Sscanf and ZCMD for it to work.
DCMD is fine also.
Reply
#6

noo, it didnt happen to me
Reply
#7

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
Reply
#8

ermm maybe my admin system is making me kick people out sorry
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)