22.09.2009, 09:15
Is there any way to spawn vehicle near the player?
P.S. I'm new here and at scripting
P.S. I'm new here and at scripting
if (strcmp("/BMXPL0X", cmdtext, true) == 0)
{
if (IsPlayerInAnyVehicle(playerid)
{
GameTextForPlayer(playerid, "~r~U IZ IN CARZ NUB!!1", 1000, 1);
}
else if (IsPlayerInAnyVehicle(playerid) == 0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreateVehicle(481, X+3, Y+3, Z+5, 0.0, 600000);
GameTextForPlayer(playerid, "~P~DER! ~B~NOOBBBBB!!1", 1000, 1);
}
return true;
}
return false;
}