11.05.2013, 12:45
pawn Код:
CMD:comprarcarro(playerid,params[])
{
new ID;
if(sscanf(params,"d",ID))
{
SendClientMessage(playerid,0xBFBFBFAA,"Use /comprarcarro ID.");
return 1;
}
else if(ID < 400 && ID > 611)
{
SendClientMessage(playerid,0xBFBFBFAA,"Carros de 400 a 611.");
return 1;
}
else
{
new Float:Pos[4];
GetPlayerPos(playerid,Pos[0],Pos[1],Pos[2]);
GetPlayerFacingAngle(playerid,Pos[3]);
CreateVehicle(ID,Pos[0],Pos[1],Pos[2],Pos[3],-1,-1,60000*10);
GameTextForPlayer(playerid,"~r~Carro Criado!",2000,3);
}
return 1;
}