pawn Код:
if(IsPlayerNPC(playerid))// return 1;//kutventjes
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
if(!strcmp(npcname, "Timmy", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Timscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 192);
SetPlayerColor(playerid, C_DRL);
//return OnPlayerSpawn(playerid);
}
else if(!strcmp(npcname, "melvin", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Melvinscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 61);
SetPlayerColor(playerid, C_DRL);
//return OnPlayerSpawn(playerid);
}
else if(!strcmp(npcname, "wesley", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Wesleyscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 61);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "basje", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Basscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 299);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "kevin", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Kevinscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 61);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "jeffreyy", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Jeffreyyscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 287);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "mongoll", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Mongollscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 162);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "gerriee", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Gerrieescar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 287);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "Kenneth", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Kennethscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 287);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "Rockyyy", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Rockyyyscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 100);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "Flappie", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Turismoscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 25);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "Flappai", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Cargoscar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 16);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
else if(!strcmp(npcname, "Admintje", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Basecar, 0); //Putting the NPC into the vehicle we created for it.
SetPlayerSkin(playerid, 287);
SetPlayerColor(playerid, C_DRL);
// return 1;
}
//return 1;
}