Invite in Gang
#1

can somebody tell me how to make a command to invite somebody in my mafia
i was looking on other gamemodes and i was find this :

Код:
(strcmp(cmd, "/gethimtomafia", true) == 0)
	    {
	    if(IsPlayerConnected(playerid))
	    {
	    tmp = strtok(cmdtext, idx);
	    if(!strlen(tmp))
		{
		SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /gethimtomafia [playerid/PartOfName]");
		return 1;
		}
		new para1;
		new ftext[20];
		para1 = ReturnUser(tmp);
	    if(IsPlayerConnected(para1))
	    {
        if(para1 != INVALID_PLAYER_ID)
	    {
		pTeam[playerid] = team_streetr;
		}
		return 1;
		}
but i was make some changes ,, and i have errors

theres my team:

Код:
  new pTeam[MAX_PLAYERS];
		#define team_streetr 1
and i want make one command to invite someone i my team .,, please help
Reply


Messages In This Thread
Invite in Gang - by Amel_PAtomAXx - 20.03.2011, 20:42
Re: Invite in Gang - by tanush - 20.03.2011, 20:52
Re: Invite in Gang - by maramizo - 20.03.2011, 22:01
Re: Invite in Gang - by Amel_PAtomAXx - 20.03.2011, 22:03
Re: Invite in Gang - by maramizo - 20.03.2011, 22:08
Re: Invite in Gang - by tanush - 20.03.2011, 22:08

Forum Jump:


Users browsing this thread: 1 Guest(s)