Command sends message.
#1

Okay, can anyone give me a command, for example: /buttsecks [ID] <- It'll send the ID a message with: 'Hello, would you like to have buttsecks? Please type /accept or /cancel If they type /cancel, the sender will recieve a message that the guy denied his request, if accepted, the guy who accepted gets a hooker skin and a dildo.
Reply
#2

pawn Код:
new Invited[MAX_PLAYERS];
if (strcmp(cmd,"/buttsecks",true)== 0)
    {
        if(!strlen(cmdtext[10]))
        {
            SendClientMessage(playerid, COLOR_GREY, "Usage: /buttsecks [playerid]");
            return 1;
        }
        new ID = strval(cmdtext[10);
        if(IsPlayerConnected(ID))
        {
                SendClientMessage(playerid,0xFFFFFFFF,"Invite sent.");
            SendClientMessage(ID,0xFFFFFFFF,"Hello, would you like to have buttsecks? Please type /accept or /cancel .");
                Invited[ID]= 1;
            }
        return 1;

    }
if(strcmp(cmd,"/accept",true)== 0)
{
    if(Invited[playerid] == 1)
    {
        GivePlayerWeapon(playerid, weaponid , ammo); // put dildo ID
        SetPlayerSkin(playerid,skinid); // put skin id
        Invited[playerid] = 0;
     }
      return 1;
}
if(strcmp(cmd,"/cancel",true)== 0)
{
    if(Invited[playerid]== 1)
    {
        Invited[playerid] = 0;
        SendClientMessage(playerid,0xFFFFFFFF,"You have canceled.");
    }
    return 1;
}
Reply
#3

Thanks.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)