Need some scripting 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: Need some scripting help ;/ (
/showthread.php?tid=167922)
Need some scripting help ;/ -
Karl1195 - 14.08.2010
Hello guys... can some one tell me how to do like /enter to enter some where i got the Co-Ordinits done ecc.. but i can't work it out and please tell me where to place them in my gamemode i am using la-rp
Re: Need some scripting help ;/ -
iggy1 - 14.08.2010
I dont know what admin script you are using so dont know what functions you got, also i only use zcmd and sscanf when it comes to commands.
This should work if you use zcmd and sscanf (only to rcon admin)
pawn Код:
COMMAND:ws(playerid,params[])
{
new mes[128],str[128],playername[26];
GetPlayerName(playerid,playername,26);
if(sscanf(params,"s[128]",mes))return SendClientMessage(playerid,0xff0000FF,"Error usage /ws [message]");
{
format(str,128,"Admin message from %s: %s",playername,mes);
for(new i: i <= MAX_PLAYERS;i++)
{
if(!IsPlayerConnected(i))continue;
if(IsPlayerAdmin(i))
{
SendClientMessage(i,0xffff00FF,str);
PlayerPlaySound(i,1085,0.0,0.0,0.0);
}
}
}
return 1;
}
EDIT: SHIT WRONG TOPIC SORRY
Re: Need some scripting help ;/ -
Karl1195 - 14.08.2010
no problem =]