26.12.2016, 13:20
1 - You might want to read this: https://sampforum.blast.hk/showthread.php?tid=570635
2 - Use foreach..
3 - Give credit to the author of the attachment system you added in your gamemode.
4 - There is barely 70 characters in this string, aswell as many others
5 - 250 cells? uh... what? A client message can have the maximum of 128 cells, you don't even need that.
6 - Wasting cells once again, it isn't even close to be 120.
7 - Why are these colors defined? you are not even using them..
2 - Use foreach..
3 - Give credit to the author of the attachment system you added in your gamemode.
4 - There is barely 70 characters in this string, aswell as many others
PHP Code:
new bstr[85];
format(bstr, sizeof(bstr), "[INFO]: {FFFFFF}You have successfully put $%i in your bank account",strval(inputtext));
PHP Code:
CMD:report(playerid, params[]){
if(PlayerInfo[playerid][LoggedIn] == false) return SendClientMessage(playerid, RED, "[ERROR]: You are not connected");
new ID, Reason[100],str[250];
if(sscanf(params,"us",ID,Reason)) return SCM(playerid, WHITE, "[USAGE]: /report (ID) (Reason)") && SCM(playerid, BLREN, "[FUNCTION]:{FFFFFF} Report a specific pleyr for a specific reason");
if(!IsPlayerConnected(ID)) return SCM(playerid, RED, "[ERROR]: This player is not connected");
SCM(playerid, YELLOW, "[INFO]: {FFFFFF}Your report was sent to all connected staff members!");
format(str, sizeof(str), "[REPORT]: {FFFFFF}%s(%i) Has reported %s(%i), Reason: %s",GetName(playerid),playerid,GetName(ID),ID,Reason);
for(new i=0;i<MAX_PLAYERS;i++){
if(!IsPlayerConnected(i)) continue;
if(PlayerInfo[i][AdminLevel]>=1)
SCM(i,ORANGE, str);
}
return 1;
}
PHP Code:
str[120];
format(str, sizeof(str), "**%s has paid for his ticket", name);
SCM(cid, BLREN, str);
PHP Code:
#define LIGHTBLUE 0x33CCFFAA
#define GREY 0xAFAFAFAA