12.03.2012, 23:41
(
Последний раз редактировалось PjFord; 13.03.2012 в 00:55.
)
Hello im here again :P i was trying to create /w for whisper, /s for shout, and /t for talk, (like say) and when i go ingame, it shows the usage but it won't show what you typed. for instance...
*me types /w Hey
*Server shows USAGE: /w [text]
Anyone can help? the script is here
*me types /w Hey
*Server shows USAGE: /w [text]
Anyone can help? the script is here
pawn Код:
CMD:t(playerid,params[])
{
if(sscanf(params,"s[128]",message)) return SCM(playerid,grey,"USAGE: /t [text]");
GetPlayerPos(playerid,X,Y,Z);
GetPlayerName(playerid,Nam,sizeof(Nam));
format(str,sizeof(str),"%s says: %s",Nam, message);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,10, X,Y,Z))
{
SCM(i,0x00E6E6FF,str);
}
}
return 1;
}
CMD:s(playerid,params[])
{
if(sscanf(params,"s[128]",message)) return SCM(playerid,grey,"USAGE: /s [text]");
GetPlayerName(playerid,Nam,sizeof(Nam));
GetPlayerPos(playerid,X,Y,Z);
format(str,sizeof(str),"%s Shouts: %s",Nam, message);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i,20, X,Y,Z))
{
SCM(i,red,str);
}
}
return 1;
}
CMD:w(playerid,params[])
{
if(sscanf(params,"s[128]",message)) return SCM(playerid,grey,"USAGE: /w [text]");
GetPlayerName(playerid,Nam,sizeof(Nam));
GetPlayerPos(playerid,X,Y,Z);
format(str,sizeof(str),"%s Whispers: %s",Nam, message);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 5.0, X,Y,Z))
{
SCM(i,0xFF925EFF,str);
}
}
return 1;
}