11.02.2010, 17:57
I got mine to work on the gf gamemode but unfortunately i just got the one with ID:0 to work
If you want to know what i did here it is:
First look a bit of posts back to one of me this solves a little then do thus under onplayerconnect:
Then i also should say you should merge the npc's with your gm and when you do the thing under onplayerspawn do this:
see what i did? no more return's!
but i'll try to figure out how to make the other 12 work!
oh yeah also keep an eye on this: http://forum.sa-mp.com/index.php?topic=152222.0
If you want to know what i did here it is:
First look a bit of posts back to one of me this solves a little then do thus under onplayerconnect:
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
return OnPlayerSpawn(playerid);//yeah it maybe sounds strange but it works :P
}
//all your other shitload untill
}
pawn Код:
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "EXAMPLENPC", true))
{
PutPlayerInVehicle(playerid, Timscar, 0);
SetPlayerSkin(playerid, 192);
SetPlayerColor(playerid, C_DRL);
}
}
but i'll try to figure out how to make the other 12 work!
oh yeah also keep an eye on this: http://forum.sa-mp.com/index.php?topic=152222.0