SA-MP Forums Archive
OnPlayertext VIP Tag - 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: OnPlayertext VIP Tag (/showthread.php?tid=454466)



OnPlayertext VIP Tag - samp_boy - 29.07.2013

Hello Guys Someone Can Help Me With Onplayertext VIP Tag ?

if(pInfo[playerid][pVipLevel] >= 1)
{
format(stringbig,sizeof(stringbig),"{6C0000}[VIP]{FFFFFF}(%d): %s",playerid, text);
SendPlayerMessageToAll(playerid,stringbig);
}

its work normal but when i mad my self regular player i can't see what i said someone can help me ?


Re: OnPlayertext VIP Tag - PrinceKumar - 29.07.2013

Use
pawn Код:
sendclientmessagetoall(your_color, stringbig);
return 0;
}



Re: OnPlayertext VIP Tag - SwisherSweet - 29.07.2013

@princekunar before you "help" someone make sure you know it yourself, i would help but im on m phone anyways read the samp wiki anout onplayertext its supposed to go return 1; then return 0;


Re: OnPlayertext VIP Tag - MP2 - 29.07.2013

Quote:
Originally Posted by Avenger™
Посмотреть сообщение
@princekunar before you "help" someone make sure you know it yourself, i would help but im on m phone anyways read the samp wiki anout onplayertext its supposed to go return 1; then return 0;
You're wrong. Returning 0 stops the original text from being sent - which is what he needs to do.

Also, you can't "return 1; then return 0;". You can only return a single value - 0 or 1.


Re: OnPlayertext VIP Tag - SwisherSweet - 29.07.2013

Omg, damn i go it messed up with ondialogresponse, sorry


Re : OnPlayertext VIP Tag - samp_boy - 29.07.2013

Still DOnt Work Help


Re : OnPlayertext VIP Tag - samp_boy - 20.03.2014

i still have this problem help look the date of the topic


Re: OnPlayertext VIP Tag - ReD_HunTeR - 20.03.2014

pawn Код:
public OnPlayerText(playerid,text[])
{
   if(pInfo[playerid][pVipLevel] >= 1)
   {
       new string[1000];
       format(string,sizeof(string),"{6C0000}[VIP]{FFFFFF}(%d): %s",playerid, text);
       SendClientMessageToAll(GetPlayerColor(playerid),string);
       return 0;
   }
   return 1;
}



Re : OnPlayertext VIP Tag - samp_boy - 20.03.2014

Код:
C:\Documents and Settings\magnifique2012\Mes documents\Tйlйchargements\Project ZMA Y_INI\Server Files\gamemodes\zma900.pwn(1902) : error 017: undefined symbol "message"
C:\Documents and Settings\magnifique2012\Mes documents\Tйlйchargements\Project ZMA Y_INI\Server Files\gamemodes\zma900.pwn(1902) : error 017: undefined symbol "message"
C:\Documents and Settings\magnifique2012\Mes documents\Tйlйchargements\Project ZMA Y_INI\Server Files\gamemodes\zma900.pwn(1902) : error 029: invalid expression, assumed zero
C:\Documents and Settings\magnifique2012\Mes documents\Tйlйchargements\Project ZMA Y_INI\Server Files\gamemodes\zma900.pwn(1902) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
How To Fix This


AW: OnPlayertext VIP Tag - Macronix - 20.03.2014

Add this somewhere:
pawn Код:
new message[128];