GameTextForPlayer
#1

Heya.
Which
pawn Код:
Public
function do I add
pawn Код:
GameTextForPlayer
to?
Like this:
pawn Код:
public OnSomethingIdontKnow
{
if (PlayerToPoint(26, playerid, x, y, z))
GameTextForPlayer(playerid, "Type /enter to go inside", 3000, 3);
Where do I add it to?
Reply
#2

pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward WhateverName(playerid);
Then

pawn Код:
public WhateverName(playerid)
  {
     if (PlayerToPoint(2.0, playerid, 279.0424,-2365.2092,1.2131))
     {
     GameTextForPlayer(playerid,"I love myself",13000,5);
     }
  }
Reply
#3

then you have to call it somewhere

if (strcmp("/cmd", cmdtext, true, 4) == 0)
{
WhateverName(playerid);

return 1;
}
Reply
#4

https://sampwiki.blast.hk/wiki/GameTextForPlayer
Reply
#5

Quote:
Originally Posted by ►►►Peter Corneile◄◄◄
pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward WhateverName(playerid);
Then

pawn Код:
public WhateverName(playerid)
  {
     if (PlayerToPoint(2.0, playerid, 279.0424,-2365.2092,1.2131))
     {
     GameTextForPlayer(playerid,"I love myself",13000,5);
     }
  }
Thanks bud
Quote:
Originally Posted by Don Correlli
No.
Reply
#6

the wiki is a very powerful useful tool, you will not correctly learn PWN if you never use it, I use it daily
Reply
#7

Quote:
Originally Posted by Shinzei_Banzai
Quote:
Originally Posted by ►►►Peter Corneile◄◄◄
pawn Код:
forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);
forward WhateverName(playerid);
Then

pawn Код:
public WhateverName(playerid)
  {
     if (PlayerToPoint(2.0, playerid, 279.0424,-2365.2092,1.2131))
     {
     GameTextForPlayer(playerid,"I love myself",13000,5);
     }
  }
Thanks bud
Quote:
Originally Posted by Don Correlli
No.
No problem
Reply
#8

Quote:
Originally Posted by Shinzei_Banzai
No.
Yes.. you have everything on wiki, even examples.
Reply
#9

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Shinzei_Banzai
No.
Yes.. you have everything on wiki, even examples.
The link you send me doesn't answer my question. Therefore I said "No".
Reply
#10

You wanted example how/where to use GameTextForPlayer, and there it is in the link i gave you:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
  new string[50];
  format(string, sizeof(string), "You entered vehicle: %i", vehicleid);
  GameTextForPlayer(playerid, string, 3000, 4);
  return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)