help - 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: help (
/showthread.php?tid=224442)
help -
omer5198 - 11.02.2011
how can i make a /pm command and /ann command?
Re: help -
Medal Of Honor team - 11.02.2011
try googling it. There are many script's out there
Re: help -
alpha500delta - 11.02.2011
Check the "base" FS in the SA:MP package. It has a /pm command
Re: help -
Ash. - 11.02.2011
pawn Код:
dcmd_ann(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOUR_ADMIN, "Authority Level Required");
if(!strlen(params)) return SendClientMessage(playerid, COLOUR_ADMIN, "Usage: /ann [message]");
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GameTextForPlayer(i, params, 10000, 5);
}
}
return 1;
}
Re: help -
omer5198 - 11.02.2011
Quote:
Originally Posted by funky1234
pawn Код:
dcmd_ann(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOUR_ADMIN, "Authority Level Required"); if(!strlen(params)) return SendClientMessage(playerid, COLOUR_ADMIN, "Usage: /ann [message]"); for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GameTextForPlayer(i, params, 10000, 5); } } return 1; }
|
thx but i forgot to say... i want this code in strtok
Re: help -
Mean - 11.02.2011
Quote:
Originally Posted by omer5198
thx but i forgot to say... i want this code in strtok
|
Why, using strtok in here is useless, just use normal things here, you use strtok for like 2 parameters, like [ID] [Something]... For like just text (1 parameter) you just need deufault SA-MP functions.
Re: help -
omer5198 - 11.02.2011
Quote:
Originally Posted by funky1234
pawn Код:
dcmd_ann(playerid, params[]) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOUR_ADMIN, "Authority Level Required"); if(!strlen(params)) return SendClientMessage(playerid, COLOUR_ADMIN, "Usage: /ann [message]"); for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GameTextForPlayer(i, params, 10000, 5); } } return 1; }
|
i need strtok code