03.02.2012, 09:16
What's wrong with this ?
pawn Код:
CMD:callsign(playerid, params[])
{
new string[128], player, callsign;
if(sscanf(params, "uc", playa, callsign))
{
SendClientMessageEx(playerid, COLOR_GRAD2, "USAGE: /callsign [playerid] [callsign]");
return 1;
}
if (PlayerInfo[playerid][pAdmin] >= 4) {
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsACop[i] == IsACop[playerid] && playerid != i)
{
CreatePlayer3DTextLabel(i, callsign, 0xFF3399AA, 0.0, 0..0, 0.8, 220.0, playerid, INVALID_VEHICLE_ID, 1)
}
}
}
}
else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
}
else {
SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
}
return 1;
}

