SA-MP Forums Archive
this is will working? - 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: this is will working? (/showthread.php?tid=232955)



OnPlayerConnect Function: - Dr.Ghost - 28.02.2011

pawn Код:
#include <a_samp>

#pragma tabsize 0
new Text3D:label[MAX_PLAYERS];
#define COLOR_RED 0xAA3333AA
#define COLOUR_PINK 0xFF00FFFF

OnPlayerConnect(playerid);
{
     //here are is v1.0 test
     new PlayerName[MAX_PLAYER_NAME];
     if(!strcmp(PlayerName, "Dr.Ghost", true))
     GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
     SetPlayerColor(playerid,COLOR_PINK);
     {
     label[playerid] = Create3DTextLabel("ADMINISTRATOR",0xFF00FFFF,30.0,40.0,50.0,40.0,0);
     Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.3);
     }

     if(!strcmp(PlayerName, "[FX]_HBK", true))
     GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
     SetPlayerColor(playerid,COLOR_RED);
     {
     label[playerid] = Create3DTextLabel("CO_OWNER",COLOR_RED,30.0,40.0,50.0,40.0,0);
     Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.3);
     }
return 1;
}
//end of test
have tested today on night. with friend ,
if this BUG or something wrong coding u can only make Correction.
this is just Joking .


PICTURE:
/imageshack/i/18579259.jpg/



at 2011-03-01


- Dr.Ghost - 01.03.2011

ahh man this is cool?or whats yea.

Код:
if(!strcmp(PlayerName, "YourSA-MPnAmeHeRe", true))
must Change it.