[pawn]CMD:sultan(playerid, params[ ])
{
new Float:Pos[4];
GetPlayerFacingAngle(playerid, Float:Pos[3]);
GetPlayerPos(playerid, Float:Pos[0], Float:Pos[1], Float:Pos[2]);
if(GetPlayerMoney(playerid) >= 60000)
{
new rand1 = random(156);
new rand2 = random(156);
GivePlayerMoney(playerid, -60000);
CreateVehicle(560, Float:Pos[0], Float:Pos[1], Float:Pos[2], Float:Pos[3], rand1, rand2, 60);
} else {
SendClientMessage(playerid, 0xFFFFFFFF, \"Nincs elég pénzed.\");
}
return 1;
}[/pawn]
Nem teszteltem de mûködnie kell.