#include <a_samp>new npcveh1;new npcveh2;new npcveh3;new npcveh4;public OnFilterScriptInit ( ){ ConnectNPC(\"Boltos\", \"load\"); ConnectNPC(\"PDOR\", \"load5\"); ConnectNPC(\"Fam\", \"load2\"); npcveh1 = CreateVehicle ( 481, 0.0, 0.0, 5.0, 0.0, 16, 16, -1 ); ConnectNPC(\"Gang\", \"load1\"); npcveh2 = CreateVehicle ( 467, 0.0, 0.0, 5.0, 0.0, 1, 2, -1 ); ConnectNPC(\"LSPD\", \"load3\"); npcveh3 = CreateVehicle ( 596, 0.0, 0.0, 5.0, 0.0, -1, -1, -1 ); ConnectNPC(\"PDMAVERICK\", \"load4\"); npcveh4 = CreateVehicle ( 497, 0.0, 0.0, 5.0, 0.0, -1, -1, -1 ); return 1;}public OnPlayerSpawn ( playerid ){ if ( IsPlayerNPC ( playerid ) ) { new npcname1 [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname1, sizeof ( npcname1 ) ); if ( !strcmp ( npcname1, \"Boltos\", true ) ) { SetPlayerColor(playerid,0xFFFFFF00); GivePlayerWeapon(playerid,24,10); SetPlayerSkin(playerid, 180); } return 1; } if ( IsPlayerNPC ( playerid ) ) { new npcname2 [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname2, sizeof ( npcname2 ) ); if ( !strcmp ( npcname2, \"PDOR\", true ) ) { SetPlayerColor(playerid,0xFFFFFF00); GivePlayerWeapon(playerid,24,10); SetPlayerSkin(playerid, 266); } return 1; } if ( IsPlayerNPC ( playerid ) ) { new npcname3 [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname3, sizeof ( npcname3 ) ); if ( !strcmp ( npcname3, \"Fam\", true ) ) { SetPlayerSkin(playerid,107); SetPlayerColor(playerid,0xFFFFFF00); PutPlayerInVehicle ( playerid, npcveh1, 0 ); } return 1; } if ( IsPlayerNPC ( playerid ) ) { new npcname4 [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname4, sizeof ( npcname4 ) ); if ( !strcmp ( npcname4, \"Gang\", true ) ) { SetPlayerSkin(playerid,115); SetPlayerColor(playerid,0xFFFFFF00); PutPlayerInVehicle ( playerid, npcveh2, 0 ); } return 1; } if ( IsPlayerNPC ( playerid ) ) { new npcname5 [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname5, sizeof ( npcname5 ) ); if ( !strcmp ( npcname5, \"LSPD\", true ) ) { SetPlayerSkin(playerid,267); SetPlayerColor(playerid,0xFFFFFF00); PutPlayerInVehicle ( playerid, npcveh3, 0 ); } return 1; } if ( IsPlayerNPC ( playerid ) ) { new npcname6 [ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname6, sizeof ( npcname6 ) ); if ( !strcmp ( npcname6, \"PDMAVERICK\", true ) ) { SetPlayerSkin(playerid,284); SetPlayerColor(playerid,0xFFFFFF00); PutPlayerInVehicle ( playerid, npcveh4, 0 ); } return 1; } return 0; }
public OnPlayerSpawn ( playerid ){ if ( IsPlayerNPC ( playerid ) ) { new npcname[ MAX_PLAYER_NAME ]; GetPlayerName ( playerid, npcname, sizeof ( npcname) ); if ( !strcmp ( npcname, \"Boltos\", true ) ) { SetPlayerColor(playerid,0xFFFFFF00); GivePlayerWeapon(playerid,24,10); SetPlayerSkin(playerid, 180); } else if ( !strcmp ( npcname, \"PDOR\", true ) ) { SetPlayerColor(playerid,0xFFFFFF00); GivePlayerWeapon(playerid,24,10); SetPlayerSkin(playerid, 266); } else if ( !strcmp ( npcname, \"Fam\", true ) ) { SetPlayerSkin(playerid,107); SetPlayerColor(playerid,0xFFFFFF00); PutPlayerInVehicle ( playerid, npcveh1, 0 ); } else if ( !strcmp ( npcname, \"Gang\", true ) ) { SetPlayerSkin(playerid,115); SetPlayerColor(playerid,0xFFFFFF00); PutPlayerInVehicle ( playerid, npcveh2, 0 ); } else if ( !strcmp ( npcname, \"LSPD\", true ) ) { SetPlayerSkin(playerid,267); SetPlayerColor(playerid,0xFFFFFF00); PutPlayerInVehicle ( playerid, npcveh3, 0 ); } else if(!strcmp ( npcname, \"PDMAVERICK\", true ) ) { SetPlayerSkin(playerid,284); SetPlayerColor(playerid,0xFFFFFF00); PutPlayerInVehicle ( playerid, npcveh4, 0 ); } return 1; } return 1; }