Jump to content

Caut un scripter


Lazar William
 Share

Recommended Posts

Imi trebuie o comanda /createpickup pickup id ma poti ajuta ?

Poti sa faci un pickup din pawno. 

//Edit

 

 

	
	if(strcmp(cmd, "/createpickup", true) == 0)
	
	
	{
	
	
	if(IsPlayerConnected(playerid))
	
	
	{
	
	
	tmp = strtok(cmdtext, idx);
	
	
	if(!strlen(tmp))
	
	
	{
	
	
	SendClientMessage(playerid, COLOR_GRAD2, "Use:/createpickup [ID model] [Label] ");
	
	
	return 1;
	
	
	}
	
	
	new Float:X, Float:Y, Float:Z;
	
	
	GetPlayerPos(playerid, X,Y,Z);
	
	
	new model;
	
	
	model = strval(tmp);
	
	
	tmp = strtok(cmdtext, idx);
	
	
	if(!strlen(tmp))
	
	
	{
	
	
	SendClientMessage(playerid, COLOR_GRAD2, "Use:/createpickup [ID model] [Label] ");
	
	
	return 1;
	
	
	}
	
	
	new type;
	
	
	type = strval(tmp);
	
	
	if (PlayerInfo[playerid][pAdmin] >= 6)
	
	
	{
	
	
	if((model >= 1210 && model <= 1325) && (model >= 321 && model <= 372)) { SendClientMessage(playerid, COLOR_GRAD2, "Only the model 1210, above and below 1325; above and below the 321 373 allowed!"); return 1; }
	
	
	if(type < 1 || type > 3) { SendClientMessage(playerid, COLOR_GRAD2, "Only: 1, 2, 3 (the Permitted usage type 2 If you don't know them)");
	
	
	return 1;
	
	
	}
	
	
	CreatePickup(model, type, X,Y,Z);
	
	
	}
	
	
	else
	
	
	{
	
	
	SendClientMessage(playerid, COLOR_GRAD1, "AdminOnly");
	
	
	}
	
	
	}
	
	
	return 1;
	
	
	}
	

 

 

Edited by Authe
Link to comment
Share on other sites

Poti sa faci un pickup din pawno. 

//Edit

 

 

	
	if(strcmp(cmd, "/createpickup", true) == 0)
	
	
	{
	
	
	if(IsPlayerConnected(playerid))
	
	
	{
	
	
	tmp = strtok(cmdtext, idx);
	
	
	if(!strlen(tmp))
	
	
	{
	
	
	SendClientMessage(playerid, COLOR_GRAD2, "Use:/createpickup [ID model] [Label] ");
	
	
	return 1;
	
	
	}
	
	
	new Float:X, Float:Y, Float:Z;
	
	
	GetPlayerPos(playerid, X,Y,Z);
	
	
	new model;
	
	
	model = strval(tmp);
	
	
	tmp = strtok(cmdtext, idx);
	
	
	if(!strlen(tmp))
	
	
	{
	
	
	SendClientMessage(playerid, COLOR_GRAD2, "Use:/createpickup [ID model] [Label] ");
	
	
	return 1;
	
	
	}
	
	
	new type;
	
	
	type = strval(tmp);
	
	
	if (PlayerInfo[playerid][pAdmin] >= 6)
	
	
	{
	
	
	if((model >= 1210 && model <= 1325) && (model >= 321 && model <= 372)) { SendClientMessage(playerid, COLOR_GRAD2, "Only the model 1210, above and below 1325; above and below the 321 373 allowed!"); return 1; }
	
	
	if(type < 1 || type > 3) { SendClientMessage(playerid, COLOR_GRAD2, "Only: 1, 2, 3 (the Permitted usage type 2 If you don't know them)");
	
	
	return 1;
	
	
	}
	
	
	CreatePickup(model, type, X,Y,Z);
	
	
	}
	
	
	else
	
	
	{
	
	
	SendClientMessage(playerid, COLOR_GRAD1, "AdminOnly");
	
	
	}
	
	
	}
	
	
	return 1;
	
	
	}
	

 

 

Acum incerc si mersi

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.