24.12.2011, 12:40
maybe you want something like this
pawn Код:
CMD:veh(playerid,params[])
{
new id,cor,cor1;
if(sscanf(params, "ddd", id, cor,cor1)) SendClientMessage(playerid,-1, ,"USO: /veh [model] [color1] [color2]");
else if (id < 400 || id > 611) SendClientMessage(playerid,-1, "Between 400 and 611");
else if (cor < 0 || cor1 > 126) SendClientMessage(playerid,-1, "Color between 0 and 126");
else
{
if(IsPlayerAdmin(playerid))
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
CreateVehicle(id,X+2,Y,Z,0.0,cor,cor1,-1);
}
}
return 1;
}