15.12.2012, 00:17
Simples:
@EDIT
Outro cmd:
pawn Code:
COMMAND:cv(playerid, params[])
{
new Name[24], Msg[128], Message[128];
if(APlayerData[playerid][PlayerLevel] > 1)
{
GetPlayerName(playerid, Name, sizeof(Name));
if(APlayerData[playerid][LoggedIn] == true)
{
if(sscanf(params, "s[128]", Message))
return SendClientMessage(playerid, 0xFF0000AA, "Use: /cv [texto]");
for (new i; i < MAX_PLAYERS; i++)
{
if (APlayerData[i][LoggedIn] == true && APlayerData[i][PlayerClass] == APlayerData[playerid][PlayerClass]) format(Msg, 128, "{FF00FF}|Anuncio Admin| %s: {FF00FF}%s", Name, Message);
}
SendClientMessageToAll(-1,Msg);
}
}
return 1;
}
Outro cmd:
pawn Code:
COMMAND:veh(playerid, params[])
{
new VehicleModel, vID, Msg[128], Float:Pos[3];
GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
SendAdminText(playerid, "/veh", params);
if(APlayerData[playerid][LoggedIn] == true && APlayerData[playerid][PlayerLevel] >= 7)
{
if(sscanf(params, "i", VehicleModel))
return SendClientMessage(playerid, 0xFF0000AA, "Use:/setcar [id]");
vID = Vehicle_Create(VehicleModel, Pos[0], Pos[1], Pos[2], 0, random(126), random(126), -1);
PutPlayerInVehicle(playerid, vID, 0);
format(Msg, 128, "Vocк criou o veiculo id %i (modelo-id = %i) nas coordenadas: x=%4.2f, y=%4.2f, z=%4.2f", vID, VehicleModel, Pos[0], Pos[1], Pos[2]);
SendClientMessage(playerid, 0x00FF00FF, Msg);
}
return 1;
}