I need a script to spawn a car for Gups 1.16a
I've tried myself to make a script but it doesn't work
else if (strcmp(cmd, "!getcar", true) == 0) {
{
new
Float:Angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid,Angle);
CreateVehicle(155, Float:-10, Float:-10, Float:-10, Float:0, 86, 44, 10);
SetVehiclePos(strval(tmp),x+3,y+3,z,Angle);
format(szMsg,sizeof(szMsg),"Spawning vehicle:[ %d ]",strval(tmp));
SendClientMessage(playerid,COLOR_GREEN,szMsg);
}
I've tried myself to make a script but it doesn't work
else if (strcmp(cmd, "!getcar", true) == 0) {
{
new
Float:Angle;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid,Angle);
CreateVehicle(155, Float:-10, Float:-10, Float:-10, Float:0, 86, 44, 10);
SetVehiclePos(strval(tmp),x+3,y+3,z,Angle);
format(szMsg,sizeof(szMsg),"Spawning vehicle:[ %d ]",strval(tmp));
SendClientMessage(playerid,COLOR_GREEN,szMsg);
}