13.04.2014, 21:57
Hey guys.
Got this Problem:
The NPC is connecting after i typed a cmd.
The Bot connects, but he doesn't spawn.
Codes:
Got this Problem:
The NPC is connecting after i typed a cmd.
The Bot connects, but he doesn't spawn.
Codes:
Код:
public OnPlayerRequestClass(playerid, classid) { if(IsPlayerNPC(playerid))return 1; SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; }
Код:
public OnPlayerSpawn(playerid) { if(IsPlayerNPC(playerid)) { new npcname[64]; GetPlayerName(playerid,npcname,64); if(!strcmp(npcname,"Mission1",true)) { SetPlayerPos(playerid,-738.1842,1648.0729,27.4358); SetPlayerSkin(playerid,33); return 1; } } return 1; }