SA-MP Forums Archive
turf system - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: turf system (/showthread.php?tid=523913)



turf system - khalildz - 04.07.2014

peace

guys i use this system turf https://sampforum.blast.hk/showthread.php?tid=276352

i want Show the name zone attacker and gang

Example :

Код:
format (str, sizeof (str), "Zone:% s is attacked by a gang:% s, the remaining 2 minutes.");
SendClientMessageToAll (RED, str);



Re: turf system - Max5 - 04.07.2014

pawn Код:
format(string,sizeof(string),"%s is attacked by %s. remaining 2 minutes.",GetPlayerNameEx(playerid);
SendClientMessageEx(i,COLOR_YELLOW,string);



Re: turf system - khalildz - 04.07.2014

how to show name gang and name zone !


Re: turf system - SHE790 - 04.07.2014

Quote:

format(string,sizeof(string),"%s is attacked by %s. remaining 2 minutes.",GetPlayerNameEx(playerid);
SendClientMessageEx(i,COLOR_YELLOW,string);

He said it already
%s is attacked by %s
Grove is attacked by Ballas


Re: turf system - khalildz - 04.07.2014

Quote:
Originally Posted by khalildz
Посмотреть сообщение
how to show name gang and name zone !
!!!!!


Re: turf system - khalildz - 04.07.2014

anyone help me

I do not understand


Re: turf system - khalildz - 04.07.2014

up ....


Re: turf system - khalildz - 05.07.2014

i need help


Re: turf system - Dziugsas - 05.07.2014

you can check if player is in range of point of some gang zone and then check his team , if his team isnt the gang zone team then you can send message.Smth like that.


Re: turf system - iFarbod - 05.07.2014

Get Player's Team Name then.

pawn Код:
stock GetPlayerTeamName(playerid)
{
    new
        TeamName[20];

    switch(gTeam[playerid])
    {
        case TEAM_BALLAS: TeamName = "Ballas";
        case TEAM_GSF: TeamName = "Grove Street Families";
        case TEAM_VAGOS: TeamName = "Los Santos Vagos";
        default: TeamName = "Unknown";
    }
    return TeamName;
}