18.10.2009, 00:07
Alright, so, I want it to be able to tell the player something when they get banned, like RRP Does (Redgie's Roleplay), But How would I put it like that?
Originally Posted by Ryan.M
Do you have a picture buddy? If you can supply me one i can help you
|
Originally Posted by Seif_
Send a message before you do Ban().
|
C:\Users\Meagan\Desktop\samp02Xserver.win32\gamemo des\WC-RP.pwn(17895) : warning 217: loose indentation C:\Users\RoflCopter\Desktop\samp02Xserver.win32\ga memodes\WC-RP.pwn(18390) : error 035: argument type mismatch (argument 2) C:\Users\Meagan\Desktop\samp02Xserver.win32\gamemo des\WC-RP.pwn(18391) : error 035: argument type mismatch (argument 2) C:\Users\Meagan\Desktop\samp02Xserver.win32\gamemo des\WC-RP.pwn(18392) : error 035: argument type mismatch (argument 2) C:\Users\Meagan\Desktop\samp02Xserver.win32\gamemo des\WC-RP.pwn(18393) : error 035: argument type mismatch (argument 2) C:\Users\Meagan\Desktop\samp02Xserver.win32\gamemo des\WC-RP.pwn(18394) : error 035: argument type mismatch (argument 2) C:\Users\Meagan\Desktop\samp02Xserver.win32\gamemo des\WC-RP.pwn(18395) : error 035: argument type mismatch (argument 2) |
if(strcmp(cmd, "/ban", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } giveplayerid = ReturnUser(tmp); if (PlayerInfo[playerid][pAdmin] >= 1) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ban [playerid/PartOfName] [reason]"); return 1; } new year, month,day; getdate(year, month, day); format(string, sizeof(string), "Admin: %s was banned by %s, reason: %s (%d-%d-%d)", giveplayer, sendername, (result),month,day,year); BanLog(string); format(string, sizeof(string), "Admin: %s was banned by %s, reason: %s", giveplayer, sendername, (result)); SendClientMessageToAll(COLOR_LIGHTRED, string); PlayerInfo[giveplayerid][pAdmin] = PlayerInfo[giveplayerid][pLevel]; PlayerInfo[giveplayerid][pLevel] = -999; SendClientMessage(COLOR_GREEN, "*****__Your banned!__*****"); SendClientMessage(COLOR_RED, "Admin: $s had banned you, reason: %s",giveplayer, (result)); SendClientMessage(COLOR_YELLOW, "If you feel that you been banned wrongfuly, take a screenshot"); SendClientMessage(COLOR_YELLOW, "And make a unban request at the forums with the screen shot"); SendClientMessage(COLOR_YELLOW, "Post it at: Lias-rp.forumotion.net, and make sure you use the right format!"); SendClientMessage(COLOR_GREEN, "****Intill then, see you later %s!***", giveplayer); Ban(giveplayerid); return 1; } }//not connected } else { format(string, sizeof(string), " %d is not an active player.", giveplayerid); SendClientMessage(playerid, COLOR_GRAD1, string); } } return 1; } |
Originally Posted by Lia
pawn Код:
|
SendClientMessage(playerid,Color,"Blah blah");
Originally Posted by Lia
pawn Код:
|
new string[128];
format(string,sizeof(string),"****Until then, See you later %s!****",giveplayer);
SendClientMessage(COLOR_GREEN, string);