Just one fast question -
Gooday - 03.01.2012
pawn Код:
CMD:911(playerid,params[])
{
//911 system
if(isnull(params)) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"Usage: /911 [Message and Location]");
new name[24];
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(playerid,name,24);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
SendClientMessage(playerid, COLOR_GOLD, "[INFO]You have just called 911. Please remain at your location and wait.");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288 ||GetPlayerSkin(i) == 278 || GetPlayerSkin(i) == 275 || GetPlayerSkin(i) == 279 || GetPlayerSkin(i) == 277 || GetPlayerSkin(i) == 274 || GetPlayerSkin(i) == 276)
{
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "DISPATCH", sendername, params);
SendClientMessageToAll(COLOR_ROYALBLUE, string);
format(string, sizeof(string), "Be advised, the following is a 911 call.", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "Units aviable please respond.", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "CALLER: %s ~ INFO & LOCATION: %s", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
}
}
return 1;
}
How i can set for all the skins (writed over the script) a red marker in the radar and with a command like /removececk remove it (playerid....)
+REP!!!!!!!!!!!!!!!!
AW: Just one fast question -
Drebin - 03.01.2012
Try this, dunno if it will work:
pawn Код:
CMD:911(playerid,params[])
{
//911 system
if(isnull(params)) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"Usage: /911 [Message and Location]");
new name[24];
new float:Px, float:Py, float:Pz;
GetPlayerPos(playerid,Px,Py,Pz);
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(playerid,name,24);
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
SendClientMessage(playerid, COLOR_GOLD, "[INFO]You have just called 911. Please remain at your location and wait.");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288 ||GetPlayerSkin(i) == 278 || GetPlayerSkin(i) == 275 || GetPlayerSkin(i) == 279 || GetPlayerSkin(i) == 277 || GetPlayerSkin(i) == 274 || GetPlayerSkin(i) == 276)
{
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "DISPATCH", sendername, params);
SendClientMessageToAll(COLOR_ROYALBLUE, string);
format(string, sizeof(string), "Be advised, the following is a 911 call.", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "Units aviable please respond.", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "CALLER: %s ~ INFO & LOCATION: %s", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
format(string, sizeof(string), "-------------------------------------------------------------------------------------------------", sendername, params);
SendClientMessageToAll(COLOR_GREY, string);
SetPlayerCheckpoint(i, Px, Py, Pz, 3.0);
}
}
return 1;
}
CMD:removecheck(playerid,params[])
{
if(GetPlayerSkin(playerid) == 285 || GetPlayerSkin(playerid) == 282 || GetPlayerSkin(playerid) == 281 || GetPlayerSkin(playerid) == 283 || GetPlayerSkin(playerid) == 288 ||GetPlayerSkin(playerid) == 278 || GetPlayerSkin(playerid) == 275 || GetPlayerSkin(playerid) == 279 || GetPlayerSkin(playerid) == 277 || GetPlayerSkin(playerid) == 274 || GetPlayerSkin(playerid) == 276)
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid,COLOR_LIGHTBLUE,"You removed your player checkpoint (if it existed)");
}
else return SendClientMessage(playerid,COLOR_LIGHTBLUE,"You need to be a policeman to use this command!");
}