Need help with some function.
#7

Quote:
Originally Posted by Cameltoe
Посмотреть сообщение
I assume theres something wrong with your variable. let us see were "Captured" is created.
as i told you:

Quote:

public OnPlayerDeath(playerid, killerid, reason)
{
if(Captured[playerid] == 0 && IsPlayerCapturing[playerid][CAPZONE] == 1)
{
LeavingCAPZONE(playerid);
SendClientMessage(playerid, -1, "[ZONE]You have died! You failed to capture the zone!");
}
return 1;
}

public OnPlayerSpawn(playerid)
{
if(Captured[playerid] == 0 && IsPlayerCapturing[playerid][CAPZONE] == 1)
{
LeavingCAPZONE(playerid);
SendClientMessage(playerid, -1, "[ZONE]You have left the capturing Zone!");
}
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
if(Captured[playerid] == 0 && IsPlayerCapturing[playerid][CAPZONE] == 1)
{
LeavingCAPZONE(playerid);
}
return 1;
}

Under "endif"
new Captured[MAX_PLAYERS][30];
Reply


Messages In This Thread
Need help with some function. - by Sawalha - 15.11.2013, 06:17
Re: Need help with some function. - by newbie scripter - 15.11.2013, 06:19
Re: Need help with some function. - by Cameltoe - 15.11.2013, 06:20
Re: Need help with some function. - by Giroud12 - 15.11.2013, 06:22
Re: Need help with some function. - by Sawalha - 15.11.2013, 07:14
Re: Need help with some function. - by Cameltoe - 15.11.2013, 07:22
Re: Need help with some function. - by Sawalha - 15.11.2013, 07:37
Re: Need help with some function. - by Cameltoe - 15.11.2013, 08:29
Re: Need help with some function. - by Sawalha - 15.11.2013, 09:53
Re: Need help with some function. - by Sawalha - 16.11.2013, 08:16
Re: Need help with some function. - by newbie scripter - 16.11.2013, 08:31
Re: Need help with some function. - by Sawalha - 16.11.2013, 09:30
Re: Need help with some function. - by Sawalha - 17.11.2013, 11:21

Forum Jump:


Users browsing this thread: 3 Guest(s)