Spawning Vehicle help
#4

then

Code:
CMD:myveh(playerid, params[])
{
	if(GetPVarInt(playerid, "Admin") >= 7)
	{
		if(GetPVarInt(playerid, "PlayerLogged") == 0) return SendClientMessage(playerid, COLOR_WHITE, "You must be logged in to use this.");
		if(IsPlayerConnected(playerid))
		{
			new modelname[20], color1, color2;
			if(sscanf(params, "s[20]dd", modelname, color1, color2)) SendClientMessage(playerid, COLOR_WHITE, "Usage: /myveh [modelid] [color1] [color2]");
			
			if(!strcmp(modelname, "Rancher", true))
			{
				// Spawn a rancher here.
			}

			//and so on with the other names u wanna add.
		}
 	}
	else SendClientMessage(playerid, COLOR_ERROR, "You do not have access to this command!");
	return 1;
}
Reply


Messages In This Thread
Spawning Vehicle help - by MrFantasy - 30.04.2017, 14:40
Respuesta: Spawning Vehicle help - by Ignaciodmr - 30.04.2017, 14:49
Re: Spawning Vehicle help - by MrFantasy - 30.04.2017, 14:51
Respuesta: Spawning Vehicle help - by Ignaciodmr - 30.04.2017, 14:55
Respuesta: Spawning Vehicle help - by Ignaciodmr - 30.04.2017, 15:09
Re: Spawning Vehicle help - by MrFantasy - 30.04.2017, 15:14

Forum Jump:


Users browsing this thread: 4 Guest(s)