17.12.2013, 23:27
pawn Код:
COMMAND:veiculo(playerid, params[])
{
new VehicleModel, vID, Msg[128], Float:Pos[3];
SendAdminText(playerid, "/veiculo", params);
if (APlayerData[playerid][LoggedIn] == true)
{
if (APlayerData[playerid][PlayerLevel] >= 5)
{
if (sscanf(params, "i", VehicleModel,)) reutnr SendClientMessage(playerid, 0xFF0000AA, "Usage: vehicle <VehicleModel> ");
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
vID = Vehicle_Create(VehicleModel, Pos[0], Pos[1], Pos[2], 0, random(126), random(126), -1);
format(Msg, 128, "Voce Criou o Veiculo %i (model-id = %i) at coords: ", vID, VehicleModel);
SendClientMessage(playerid, 0x00FF00FF, Msg);
}
}
return 1;
}