25.05.2011, 23:32
eu uso assim
pawn Код:
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Secretaria_Sofia", true))
{
JBC_PutPlayerInVehicle(playerid, NPC_Vei6, 0);
JBC_SetSpawnInfo( playerid, 0, 93, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0 );
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,28);
return 1;
}
}
return 1;
}