12.02.2012, 02:37
This is the script I made for it. It works fine, but when the car spawns, the only thing you see on it is the first letter of the plate you put.
This is the command:
When it spawns the car, this is what its running:
It is using that for each car spawn. Thanks!
This is the command:
PHP код:
command(setplate, playerid, params[])
{
new plate, vehslot;
if(sscanf(params, "ci", plate, vehslot))
{
SendClientMessage(playerid, WHITE, "SYNTAX: /setplate [Plate] [Car Slot]");
}
else
{
switch(vehslot)
{
case 1:
{
Player[playerid][CarPlate] = plate;
}
case 2:
{
Player[playerid][CarPlate2] = plate;
}
case 3:
{
Player[playerid][CarPlate3] = plate;
}
case 4:
{
Player[playerid][CarPlate4] = plate;
}
case 5:
{
Player[playerid][CarPlate5] = plate;
}
}
}
return 1;
}
PHP код:
SetVehicleNumberPlate(Player[playerid][CarLinkID], Player[playerid][CarPlate]);