28.10.2016, 23:39
Queria ajuda pra fazer o NPC ocupa a vaga de ID do samp fazendo com que ele ganhe o IP falso.
if(IsPlayerNPC(playerid)) { new npcname[MAX_PLAYER_NAME]; GetPlayerName(playerid, npcname, sizeof(npcname)); if(strcmp(npcname, "NPCJoaquim", true) == 0) { Logado[playerid] = 1; PutPlayerInVehicle(playerid, NPCJoaquimV, 0); SetPlayerColor(playerid, 0xFFA500FF); SetPlayerSkin(playerid, 5); JoaquimTexto = Create3DTextLabel("Joaquim", 0xFFC000FF, 0.0,0.0,0.0, 30.0 ,0,0); Attach3DTextLabelToPlayer(JoaquimTexto, playerid, 0.0, 0.0, 0.0); } return 1; }
ConnectNPC("NPCJoaquim", "Joaquim");
public OnGameModeInit()
{
ConnectNPC("[BOT]Pilot", "pilot");
return 1;
}