31.03.2011, 10:14
OnGameModeInit
OnPlayerRequestSpawn
OnPlayerRequestSpawn
I didn't put anything on OnPlayerConnect
pawn Код:
ConnectNPC("Marco_Triplo","bot");
pawn Код:
if(IsPlayerNPC(playerid))
{
new playername[24];
GetPlayerName(playerid,playername,24);
if(!strcmp(playername,"Marco_Triplo",true))
{
SetPlayerSkin(playerid , 187);
SetPlayerPos(playerid,1432.1899,-1000.1763,1640.2059);
labelBot[playerid] = Create3DTextLabel("Marco_Triplo",0xFFFFFFFF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(labelBot[playerid], playerid, 0.0, 0.0, 0.2);
}
}
pawn Код:
if(IsPlayerNPC(playerid))
{
new npcname[24];
GetPlayerName(playerid, npcname, 24);
if(!strcmp(npcname,"Marco_Triplo",true))
{
SetPlayerSkin(playerid, 187);
SetPlayerPos(playerid,1432.1899,-1000.1763,1640.2059);
}
}