07.10.2015, 21:11
How I putplayerinvehicle when he type this command?
Thanks in advance. Rep+
PHP код:
YCMD:veh(playerid, params[], help)
{
#pragma unused help
new id, string[40], Float: K[3], c1,c2;
if(PlayerInfo[playerid][xAdmin] < 3) return SCM(playerid, -1, "{A80000}[Error]: {585858}You are not an administrator!");
{
if(sscanf(params,"iii", id, c1, c2)) return SendClientMessage(playerid, -1, "/veh [ID] [Col1] [Col2]");
GetPlayerPos(playerid,K[0], K[1], K[2]);
format(string, sizeof(string), "Vehicle ID %i", id);
SendClientMessage(playerid, -1, string);
CreateVehicle(id, K[0], K[1], K[2], 90, c1, c2, 90);
}
return true;
}