#1

Hi, I have the npc sa-mp Windows, and put it on the server but when I downloaded so I did not show the server why??

Code:
Код:
#include <a_samp>
#include <a_npc>

public OnFilterScriptInit(){
ConnectNPC("TrainDriverLV","train_lv");
ConnectNPC("TrainDriverLS","train_ls");
ConnectNPC("TrainDriverSF","train_sf");
ConnectNPC("PilotLV","at400_lv");
ConnectNPC("PilotSF","at400_sf");
ConnectNPC("PilotLS","at400_ls");
ConnectNPC("StjepanSBot","npcstjepans");
ConnectNPC("StjepanSBot1","npcstjepans1");
return 1;
}

public OnPlayerRequestClass(playerid, classid){
if(!IsPlayerNPC(playerid)) return 0;
new playername[64];
GetPlayerName(playerid,playername,64);
if(!strcmp(playername,"TrainDriverLV",true)) {
SetSpawnInfo(playerid,69,255,1462.0745,2630.8787,10.8203,0.0,-1,-1,-1,-1,-1,-1);
}
else if(!strcmp(playername,"TrainDriverSF",true)) {
SetSpawnInfo(playerid,69,255,-1942.7950,168.4164,27.0006,0.0,-1,-1,-1,-1,-1,-1);
}
else if(!strcmp(playername,"TrainDriverLS",true)) {
SetSpawnInfo(playerid,69,255,1700.7551,-1953.6531,14.8756,0.0,-1,-1,-1,-1,-1,-1);
}
else if(!strcmp(playername,"PilotLV",true)) {
SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
else if(!strcmp(playername,"PilotSF",true)) {
SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
else if(!strcmp(playername,"PilotLS",true)) {
SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
else if(!strcmp(playername,"TestIdleDriver",true)) {
SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
else if(!strcmp(playername,"TaxiTest",true)) {
SetSpawnInfo(playerid,69,61,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
return 0;
}

public OnPlayerSpawn(playerid){
if(!IsPlayerNPC(playerid)) return 1;
new playername[64];
GetPlayerName(playerid,playername,64);

if(!strcmp(playername,"TrainDriverLV",true)) {
PutPlayerInVehicle(playerid,1,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername,"TrainDriverSF",true)) {
PutPlayerInVehicle(playerid,5,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername,"TrainDriverLS",true)) {
PutPlayerInVehicle(playerid,9,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername,"PilotLV",true)) {
PutPlayerInVehicle(playerid,13,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername,"PilotSF",true)) {
PutPlayerInVehicle(playerid,14,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername,"PilotLS",true)) {
PutPlayerInVehicle(playerid,15,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername,"TestIdleDriver",true)) {
PutPlayerInVehicle(playerid,43,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername,"TaxiTest",true)) {
PutPlayerInVehicle(playerid,968,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}
else if(!strcmp(playername, "Policajt1", true))
{
SetPlayerColor(playerid, 0xFFFFFFAA);
SetPlayerSkin(playerid, 281);
SetPlayerAttachedObject(playerid,0,19142,1,0.049300,0.035000,-0.003500,0.000000,0.000000,0.000000,1.100000,1.100000,1.100000);// Postavlja NPCu objekt pancirke
}
else if(!strcmp(playername, "Policajt2", true))
{
SetPlayerColor(playerid, 0xFFFFFFAA);
SetPlayerSkin(playerid, 280);
SetPlayerAttachedObject(playerid,0,19142,1,0.049300,0.035000,-0.003500,0.000000,0.000000,0.000000,1.100000,1.100000,1.100000);// Postavlja NPCu objekt pancirke
}
return 1;
}
Help me?
Reply
#2

Help me...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)