/SOS Command
#1

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)