11.02.2010, 16:55
Bump
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
return OnPlayerSpawn(playerid);//yeah it maybe sounds strange but it works :P
}
//all your other shitload untill
}
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);
}
}
Originally Posted by WThieves
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: pawn Код:
pawn Код:
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 |
Originally Posted by Sew_Sumi
Man you need to fix the game mode...
It's the old if !IsPlayerNPC... You need to read more regarding the 0.3 NPC Scripting... It has been SOOOOOO told over and over, and searching on !IsPlayerNPC will point out how to fix the issue. |
public OnGameModeInit()
{
ConnectNPC("NPCNAME","RECORDINGNAME");
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"NPCNAME",true)) {
SetSpawnInfo( playerid, 0, 12, 1958.33, 1343.12, 15.36, 269.15, 31, 1000, 0, 0, 0, 0 );
PutPlayerInVehicle(playerid, VEHICLENAME, 0);
}
return 1;
}
#define RECORDING "NPCNAME"
#define RECORDING_TYPE 1 // 2 for on foot 1 for in a vehicle
#include <a_npc>
main(){}
public OnNPCSpawn() StartRecordingPlayback(RECORDING_TYPE, RECORDING);
Originally Posted by V1ceC1ty
Stop bumping.
Filterscript: pawn Код:
pawn Код:
If it still doesn't work then re-download samp server. Have you tried using the NPC's without GF to see if they work? |
Originally Posted by V1ceC1ty
Well then its a GF problem.
|
Originally Posted by Ricop522
Quote:
|
Originally Posted by WThieves
Quote:
|
Originally Posted by Ma
I changed to another roleplay gamemode and now they work, the godfather is just to buggy.
|
Originally Posted by Ricop522
Quote:
|
Originally Posted by Sew_Sumi
LOL, the first post states that this indeed is a GF edit...
And as for your "buggy" complaints, well... It took me 5-10 minutes to convert the GF gamemode to 0.3... What you WANT is someone to do this all for you, and you don't seem like you're interested in doing it yourself. After all, Thats why people don't really like GF... Everybody just posts questions up without searching or even attempting to find help in the correct topic... As I said, if(IsPlayerNPC(playerid))return 1; |