15.10.2013, 17:47
pawn Код:
stock GetName(playerid)
{
new szName[MAX_PLAYER_NAME];
GetPlayerName(playerid, szName, sizeof(szName));
return szName;
}
forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
{
// do something (code)
// you might want to return values about if it failed or not.
}
CMD:b(playerid, params[]) // line 500
{
if(isnull(params)) return SendClientMessage(playerid, COLOR_GREY, "/b (text)");
new string[144];
format(string, sizeof(string), "(( %s: %s ))", GetName(playerid), params);
ProxDetector(20, playerid, string, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY, COLOR_GREY);
return 1;
}