22.02.2011, 19:15
well ... the NPC is uploaded, the file ".rec" is loaded, but what I use on "OnPlayerSpawn" does not work ...
can someone help me?
Thanks already!
can someone help me?
Thanks already!
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new nomenpc[MAX_PLAYER_NAME];
GetPlayerName(playerid,nomenpc,sizeof(nomenpc));
if(!strcmp(nomenpc,"Motorista_Manuel",true))
{
PutPlayerInVehicle(playerid, NPC_Tram, 0);
SetSpawnInfo( playerid, 0, 43, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );
}
}
return 1;
}