14.12.2011, 12:45
Hey, I need help with my /invite command.. This is what I have so far..
I'm stuck at getting the players faction id who sends the invite, so the person gets invited into their group.
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]