Usage: /rights (playerid)
if(strcmp(cmd, "/rights", true) == 0) { if(IsPlayerConnected(playerid)) { if(gTeam[playerid] != 2) { SendClientMessage(playerid, COLOR_GREY, "** You are not a Cop!"); return 1; } if(PlayerInfo[playerid][pDBanned] == 1) { SendClientMessage(playerid, COLOR_GREY, "** You are Banned From Cop Duty!"); return 1; } if(PlayerInfo[playerid][pDuty] != 1 && PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_GREY, "** You are not on Duty!"); return 1; } tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Usage: /rights (playerid)"); return 1; } giveplayerid = ReturnUser(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "Usage: /rights (playerid)"); return 1; } moneys = strval(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if (ProxDetectorS(8.0, playerid, giveplayerid)) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); //if(sscanf(params, "u", id)) return SendClientMessage(playerid, COLOR_RED, "Usage: /rights (playerid)"); SendClientMessage(playerid, COLOR_RED, "Usage: /rights (playerid)"); SendClientMessage(playerid, COLOR_RED, "Your rights: bla bla bla bla"); SendClientMessage(playerid, COLOR_RED, " rights continue bla bla bla"); return 1; } else { SendClientMessage(playerid, COLOR_GREY, "** That player is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, "** That player is Offline !"); return 1; } } return 1; }
I ask why not just make a bind for it using a keybinder such as "Chaos AD Keybinder"
|
I like your idea. I will try to help you if I can. I am reviewing your script and will do some tests and get back with ya!
|