01.07.2018, 16:04
Problem solved i have done it ... this is the new scripting
new Nea_spagatuVehicle; //Global variable!
new Nea_stranutVehicle; //Global variable!
new Nea_caisaVehicle; //Global variable!
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname,"Nea_spagatu",false))
{
SetPlayerSkin(playerid, 61); // your skin choice for NPC
}
if(!strcmp(npcname,"gina",false))
{
SetPlayerSkin(playerid, 55); // your skin choice for NPC
}
if(!strcmp(npcname,"Elvis1",false))
{
SetPlayerSkin(playerid, 80); // your skin choice for NPC
}
if(!strcmp(npcname,"Elvis2",false))
{
SetPlayerSkin(playerid, 81); // your skin choice for NPC
}
if(!strcmp(npcname,"mirela",false))
{
SetPlayerSkin(playerid, 63); // your skin choice for NPC
}
if(!strcmp(npcname,"narcisa",false))
{
SetPlayerSkin(playerid, 90); // your skin choice for NPC
}
if(!strcmp(npcname,"coredelusa",false))
{
SetPlayerSkin(playerid, 91); // your skin choice for NPC
}
if(!strcmp(npcname,"mirabela",false))
{
SetPlayerSkin(playerid, 91); // your skin choice for NPC
}
if(!strcmp(npcname,"frosa",false))
{
SetPlayerSkin(playerid, 89); // your skin choice for NPC
}
if(!strcmp(npcname,"peste",false))
{
SetPlayerSkin(playerid, 100); // your skin choice for NPC
}
if(!strcmp(npcname,"meclaren",false))
{
SetPlayerSkin(playerid, 122); // your skin choice for NPC
}
if(!strcmp(npcname,"nino",false))
{
SetPlayerSkin(playerid, 114); // your skin choice for NPC
}
if(!strcmp(npcname,"puiutzu",false))
{
SetPlayerSkin(playerid, 144); // your skin choice for NPC
}
if(!strcmp(npcname,"gigi",false))
{
SetPlayerSkin(playerid, 156); // your skin choice for NPC
}
if(!strcmp(npcname,"Nea_stranut",false))
{
SetPlayerSkin(playerid, 274); // your skin choice for NPC
}
if(!strcmp(npcname,"Nea_caisa",false))
{
SetPlayerSkin(playerid, 253); // your skin choice for NPC
}
if(!strcmp(npcname, "Nea_spagatu", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Nea_spagatuVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
if(!strcmp(npcname, "Nea_stranut", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Nea_stranutVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
if(!strcmp(npcname, "Nea_caisa", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Nea_caisaVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
return 1;
}
if(IsPlayerNPC(playerid))
{
SetPlayerSkin(playerid,PlayerInfo[playerid][pChar]);
GivePlayerWeapon(playerid,30,99999);
return 1;
}
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnGameModeInit=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
public OnGameModeExit()
{
print("my gamemode");
ConnectNPC("Nea_spagatu","yonik17");
Nea_spagatuVehicle = CreateVehicle(449, 0.0, 0.0, 7.0, 0.0, 249, 7, 5000);
print("my gamemode");
ConnectNPC("Nea_stranut","pilot");
Nea_stranutVehicle = CreateVehicle(487, 0.0, 0.0, 7.0, 0.0, 1, 1, 5000);
print("my gamemode");
ConnectNPC("Nea_caisa","soferu");
Nea_caisaVehicle = CreateVehicle(431, 0.0, 0.0, 7.0, 0.0, 1, 1, 5000);
i have added skins to... i tried to do this for a few years now ... thx for nothing
new Nea_spagatuVehicle; //Global variable!
new Nea_stranutVehicle; //Global variable!
new Nea_caisaVehicle; //Global variable!
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname,"Nea_spagatu",false))
{
SetPlayerSkin(playerid, 61); // your skin choice for NPC
}
if(!strcmp(npcname,"gina",false))
{
SetPlayerSkin(playerid, 55); // your skin choice for NPC
}
if(!strcmp(npcname,"Elvis1",false))
{
SetPlayerSkin(playerid, 80); // your skin choice for NPC
}
if(!strcmp(npcname,"Elvis2",false))
{
SetPlayerSkin(playerid, 81); // your skin choice for NPC
}
if(!strcmp(npcname,"mirela",false))
{
SetPlayerSkin(playerid, 63); // your skin choice for NPC
}
if(!strcmp(npcname,"narcisa",false))
{
SetPlayerSkin(playerid, 90); // your skin choice for NPC
}
if(!strcmp(npcname,"coredelusa",false))
{
SetPlayerSkin(playerid, 91); // your skin choice for NPC
}
if(!strcmp(npcname,"mirabela",false))
{
SetPlayerSkin(playerid, 91); // your skin choice for NPC
}
if(!strcmp(npcname,"frosa",false))
{
SetPlayerSkin(playerid, 89); // your skin choice for NPC
}
if(!strcmp(npcname,"peste",false))
{
SetPlayerSkin(playerid, 100); // your skin choice for NPC
}
if(!strcmp(npcname,"meclaren",false))
{
SetPlayerSkin(playerid, 122); // your skin choice for NPC
}
if(!strcmp(npcname,"nino",false))
{
SetPlayerSkin(playerid, 114); // your skin choice for NPC
}
if(!strcmp(npcname,"puiutzu",false))
{
SetPlayerSkin(playerid, 144); // your skin choice for NPC
}
if(!strcmp(npcname,"gigi",false))
{
SetPlayerSkin(playerid, 156); // your skin choice for NPC
}
if(!strcmp(npcname,"Nea_stranut",false))
{
SetPlayerSkin(playerid, 274); // your skin choice for NPC
}
if(!strcmp(npcname,"Nea_caisa",false))
{
SetPlayerSkin(playerid, 253); // your skin choice for NPC
}
if(!strcmp(npcname, "Nea_spagatu", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Nea_spagatuVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
if(!strcmp(npcname, "Nea_stranut", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Nea_stranutVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
if(!strcmp(npcname, "Nea_caisa", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Nea_caisaVehicle, 0); //Putting the NPC into the vehicle we created for it.
}
return 1;
}
if(IsPlayerNPC(playerid))
{
SetPlayerSkin(playerid,PlayerInfo[playerid][pChar]);
GivePlayerWeapon(playerid,30,99999);
return 1;
}
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=OnGameModeInit=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
public OnGameModeExit()
{
print("my gamemode");
ConnectNPC("Nea_spagatu","yonik17");
Nea_spagatuVehicle = CreateVehicle(449, 0.0, 0.0, 7.0, 0.0, 249, 7, 5000);
print("my gamemode");
ConnectNPC("Nea_stranut","pilot");
Nea_stranutVehicle = CreateVehicle(487, 0.0, 0.0, 7.0, 0.0, 1, 1, 5000);
print("my gamemode");
ConnectNPC("Nea_caisa","soferu");
Nea_caisaVehicle = CreateVehicle(431, 0.0, 0.0, 7.0, 0.0, 1, 1, 5000);
i have added skins to... i tried to do this for a few years now ... thx for nothing