11.03.2011, 19:57
(
Последний раз редактировалось Michael@Belgium; 12.03.2011 в 11:32.
)
hi to everyone ! I need much help right now
So i'm trying to ... if i enter a cmd THEN should the npc's play but ... idk
This is what i have:
<DELETED>
And about the cmd ...
Cmon guys THIS MUST BE WORK ... or not xD
It's a backup cmd so 3 npc are going to one place ...
I have something like 5 cmds !
HELP ! ^^
So i'm trying to ... if i enter a cmd THEN should the npc's play but ... idk
This is what i have:
<DELETED>
And about the cmd ...
pawn Код:
if(strcmp(cmdtext,"/backup1",true) == 0)
{
ConnectNPC("Fireman1","firemen1makefirestation");
ConnectNPC("Fireman2","firemen2makefirestation");
ConnectNPC("Fireman3","firemen3makefirestation");
Firemencar[1] = AddStaticVehicle(407,-2022.4456,93.0133,28.3217,272.4218,3,1);
Firemencar[2] = AddStaticVehicle(407,-2022.2397,83.8559,28.2866,270.2873,3,1);
Firemencar[3] = AddStaticVehicle(407,-2022.3734,75.7672,28.3362,272.2477,3,1);
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, "Fireman1", true)) //Checking if the NPC's name is MyFirstNPC
{
PutPlayerInVehicle(playerid, Firemencar[1], 0); //Putting the NPC into the vehicle we created for it.
}
if(!strcmp(npcname, "Fireman2",true))
{
PutPlayerInVehicle(playerid, Firemencar[2],0);
}
if(!strcmp(npcname,"Fireman3",true))
{
PutPlayerInVehicle(playerid, Firemencar[3],0);
}
return 1;
}
//StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER, "firemen1makefirestation");
//StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER, "firemen2makefirestation");
//StartRecordingPlayback(PLAYER_RECORDING_TYPE_DRIVER, "firemen3makefirestation");
SendClientMessageToAll(COLOR_PINK,"[BACKUP] Backup is coming for the flames at the train station !");
return 1;
}
It's a backup cmd so 3 npc are going to one place ...
I have something like 5 cmds !
HELP ! ^^