/SOS Command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /SOS Command (
/showthread.php?tid=125818)
/SOS Command -
Torran - 05.02.2010
I know i have another topic, But i really need this:
I have this code given to me by
MadeMan
pawn Код:
dcmd_sos(playerid, params[])
{
new string[128], playername[24];
GetPlayerName(playerid, playername, sizeof(playername));
format(string,sizeof(string),"[SOS] %s needs help at %s",playername, params);
print("SOS Sent");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
SendClientMessage(i,0xFF0000FF,string);
print("SOS Sent2");
}
}
return 1;
}
Ive tried crediting everything in my script to see if something outside the command was doing it,
It appears not, Does anyone know whats wrong with this command? As if i type /sos test ingame
It does nothing, No SOS Sent or SOS Sent2 In server log, No nothing. Anyone know?