if(strcmp("/changemycolour", cmdtext, true, 10) == 0)
{
if(InSpawn[playerid] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command while on class selection");
if(GetPVarInt(playerid, "InDm") == 1) return SendClientMessage(playerid,COLOR_RED, "You cant use any command While Your in DM");
else
{
ShowPlayerDialog(playerid, DIALOGID, DIALOG_STYLE_LIST, "Color Name Changer", "Purple\nYellow\nRed\nLightblue\nOrange\nGreen\nIndigo\nPink\nBlack", "Select", "Cancel");
}
return 1;
}
if(dialogid == 2)
{
if(response == 1)
{
if(GetPVarInt(playerid,"RulesAccepted")!=1)
{
SetPVarInt(playerid,"RulesAccepted",1);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 5);
GivePlayerMoney(playerid, 50000);
SendClientMessage(playerid, COLOR_GREEN, "You Accept The Rules You Recieve $500000 + 5 Score Points");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Already Accepted The Rules");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Ignore The Rules");
SendClientMessage(playerid, COLOR_RED, "You Have Been Kicked!, Reason : Ignoring The Rules");
Kick(playerid);
}
return 1;
}
if(dialogid == 2)
{
if(response == 1) {
if(GetPVarInt(playerid,"RulesAccepted")!=1) {
SetPVarInt(playerid,"RulesAccepted",1);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 5);
GivePlayerMoney(playerid, 50000);
SendClientMessage(playerid, COLOR_GREEN, "You Accept The Rules You Recieve $500000 + 5 Score Points");
}
else {
SendClientMessage(playerid, COLOR_RED, "You Already Accepted The Rules");
}
}
else {
SendClientMessage(playerid, COLOR_RED, "You Ignore The Rules");
SendClientMessage(playerid, COLOR_RED, "You Have Been Kicked!, Reason : Ignoring The Rules");
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has been kicked for (Denied the rules)",name);
SendClientMessageToAll(COLOR,string);
Kick(playerid);
}
return 1;
}
pawn Код:
|