Creating a static faction system, help with command.
#1

Hey, I need help with my /invite command.. This is what I have so far..

PHP Code:
CMD:invite(playerid,params[])
{
    new
        
targetid;
    if(
PlayerInfo[playerid][Group] == 255) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]: You're not in a group ");
    if(
sscanf(params,"u",targetid)) return SendClientMessage(playerid,COLOR_SYNTAX,"[SYNTAX]: /invite [targetid] ");
    if(
targetid==INVALID_PLAYER_ID) return SendClientMessage(playerid,COLOR_ERROR,"[ERROR]: Player is not connected. ");
    else
    {
        if(
PlayerInfo[playerid
I'm stuck at getting the players faction id who sends the invite, so the person gets invited into their group.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)