05.06.2014, 16:06
hello all I got a problem in this 3dtest
under onplayerspawn:
the problem is the text appears for all even if his name wasn't as the shown, and any ideas how to replace it with player name on the head of player?
under onplayerspawn:
pawn Код:
//------------------------3D Text For the Owner ;)--------------------------
new PlayerName[24], string[256], Float: px, Float: py, Float: pz;
GetPlayerName(playerid, PlayerName, 24);
if(strcmp(PlayerName, "[sF]StreetFighter", true)) {
GetPlayerPos(playerid, px, py, pz);
format(string, sizeof(string),"{00FF00}[sF]StreetFighter(%d) = Community Owner", playerid);
STRING[playerid] = CreateDynamic3DTextLabel(string, -1, 0.0, 0.0, -0.8, 20, playerid, INVALID_VEHICLE_ID, 0, -1, -1, -1, 25.0);
Attach3DTextLabelToPlayer(STRING[playerid], playerid, 0.0, 0.0, 0.2);
return 1;}