24.10.2011, 09:36
I found Something on my NPC
when i connect it to my server it works fine
but goes what my rank system and score system
textdraw is look like getting buggy/glitch.
Heres what i mean
heres my original rank
but every 2 secs it became
but after 1 secs it came back to normal again
Heres my code of NPC
Gamemode Deatils:
OnGameModeInit:
OnPlayerSpawn
Help me guys
when i connect it to my server it works fine
but goes what my rank system and score system
textdraw is look like getting buggy/glitch.
Heres what i mean
heres my original rank
Code:
LEVEL: 36 SCORE: 109871
Code:
LEVEL: 0 SCORE: 0
Heres my code of NPC
pawn Code:
#include <a_npc>
#define rec "BallasSeller"
#define onfoot 2
main(){}
public OnRecordingPlaybackEnd() StartRecordingPlayback(onfoot,rec);
public OnNPCSpawn()
{
SetMyPos(1904.8568,-1737.0551,13.3292);
StartRecordingPlayback(onfoot,rec);
}
OnGameModeInit:
pawn Code:
ConnectNPC("ZondonX","BallasSeller"); //Ballas Seller - NPC
pawn Code:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "ZondonX", true))
{
SetPlayerSkin(playerid,102);
}
return 1;
}