help me please - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help me please (
/showthread.php?tid=260957)
Need help with if playerTopoint -
Unknown_Killer - 11.06.2011
well it didnt work anyway here the full codes.
pawn Код:
public golfclub()
{
foreach(Player, i)
{
if(PlayerToPoint(1, i, 1497.7394,2773.8582,10.8203))
{
if(GolfArea[i] == 0)
{
if(gTeam[i] == Mafia_Team)
{
TextDrawShowForPlayer(i, Golftake[i]);
GolfArea[i] = 1;
}
else
{
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), "%s reach Golf Area", name);
SendClientMessageToAll(COLOR_ORANGE,str);
GolfArea[i] = 1;
SendClientMessage(i,COLOR_CON_GREEN, "Stay In here for 25 seconds to finish your job");
Tmgolf[i] = SetTimer("GolfMission",10000,0);
}
}
}
else
{
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), "%s Leaved the Golf area without finishing his job", name);
SendClientMessageToAll(COLOR_ORANGE,str);
GolfArea[i] = 0; // When he leaves, he's no longer in the area
KillTimer(Tmgolf[i]);
return 1;
}
}
return 1;
}
it keep spamming that "player Leaved the Golf area without finishing his job" when player connect any help ?
Re: help me please -
Jay. - 11.06.2011
pawn Код:
public golfclub()
{
foreach(Player, i)
{
if(PlayerToPoint(1, i, 1497.7394,2773.8582,10.8203))
{
SendClientMessage(i,COLOR_CON_GREEN, "Welcome to golf club");
}
else
{
SendClientMessage(i,COLOR_CON_GREEN, "You leaved the golf club");
return 1;
}
}
}
Re: help me please -
Unknown_Killer - 11.06.2011
well it didnt work anyway here the full codes.
pawn Код:
public golfclub()
{
foreach(Player, i)
{
if(PlayerToPoint(1, i, 1497.7394,2773.8582,10.8203))
{
if(GolfArea[i] == 0)
{
if(gTeam[i] == Mafia_Team)
{
TextDrawShowForPlayer(i, Golftake[i]);
GolfArea[i] = 1;
}
else
{
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), "%s reach Golf Area", name);
SendClientMessageToAll(COLOR_ORANGE,str);
GolfArea[i] = 1;
SendClientMessage(i,COLOR_CON_GREEN, "Stay In here for 25 seconds to finish your job");
Tmgolf[i] = SetTimer("GolfMission",10000,0);
}
}
}
else
{
new str[128], name[MAX_PLAYER_NAME];
GetPlayerName(i, name, sizeof(name));
format(str, sizeof(str), "%s Leaved the Golf area without finishing his job", name);
SendClientMessageToAll(COLOR_ORANGE,str);
GolfArea[i] = 0; // When he leaves, he's no longer in the area
KillTimer(Tmgolf[i]);
return 1;
}
}
return 1;
}
it keep spamming that "player Leaved the Golf area without finishing his job" when player connect any help ?
Respuesta: help me please -
Alex_Obando - 11.06.2011
Lol, I though you were a very nice scripter
!
WW2 Server doesnt even have 1 player p/day.
Re: help me please -
Unknown_Killer - 11.06.2011
well first im not scripter there i just helped him with the site thats all.
second i just need this little help if u know how u can fi it
Re: help me please -
Unknown_Killer - 11.06.2011
bump
Re: help me please -
Unknown_Killer - 12.06.2011
bump any help?