19.07.2010, 02:27
look i made this , where do i put this ?
forward Tele(playerid);
public Tele(playerid)
{
if(tele[playerid] == 1)
{
if(PlayerAtPos(playerid,546,456.6,466)
{
SetPlayerPos(playerid,54645,64564,56.6);
SendClientMessage(playerid,0x045BBAA,"You have gone to the stadium");
}
}
return 1;
}
PROBLEMS:
And those are some fake numbers .. but the rest is good ... and PlayerAtPos i made that myself ..... now if i put this at onplayerupdate Tele(playerid); , the message box goes crazy ! it says you have gone to hte stadium milions of times ... so where do i put it ?and i tried to not place it anywhere .. and it didnt work .. and i put this as a time for 1 second at ongamemode init and hte message box went crazy again.And where do i put this ?
forward Tele(playerid);
public Tele(playerid)
{
if(tele[playerid] == 1)
{
if(PlayerAtPos(playerid,546,456.6,466)
{
SetPlayerPos(playerid,54645,64564,56.6);
SendClientMessage(playerid,0x045BBAA,"You have gone to the stadium");
}
}
return 1;
}
PROBLEMS:
And those are some fake numbers .. but the rest is good ... and PlayerAtPos i made that myself ..... now if i put this at onplayerupdate Tele(playerid); , the message box goes crazy ! it says you have gone to hte stadium milions of times ... so where do i put it ?and i tried to not place it anywhere .. and it didnt work .. and i put this as a time for 1 second at ongamemode init and hte message box went crazy again.And where do i put this ?