PD i FBI komanda

Započeo Å minker, April 24, 2010, 14:50:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Å minker

moze mi ko dati /pu komandu
to je komanda s kojom igraca mozes staviti u auto
neznam ju napraviti
hvaa unaprijed

ccc...


if(strcmp(cmd, "/pu", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
       if(!IsACop(playerid))
{
   SendClientMessage(playerid, COLOR_GRAD1, "Niste policajac!");
   return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /uhapsi [igravev id/ Dio Imena]");
return 1;
}
new newcar = GetPlayerVehicleID(playerid);
new playa;
playa = ReturnUser(tmp);
if(IsACopCar(newcar) || IsNgCar(newcar) || IsAnFbiCar(newcar))
{
   if(IsPlayerConnected(playa))
   {
       if(playa != INVALID_PLAYER_ID)
       {
           new Float:x, Float:y, Float:z;
           GetPlayerPos(playa,x,y,z);
           if(PlayerToPoint(5, playerid, x, y, z))
           {
            PutPlayerInVehicle(playa,newcar,1);
            GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s stavlja %s u svoje vozilo.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Taj igrac nije blizu vas.");
}
}
   }
}
else
{
   SendClientMessage(playerid, COLOR_GRAD1, "Niste u policijskom vozilu!");
}
   }
   return 1;
}
Poslednja Izmena: April 24, 2010, 14:53:56 POSLE PODNE od Haris Hadzic


[BP] HeLoX ba! ^^
Forum: balkan-paradise.info- Još u izradi!


ma np... ;)


[BP] HeLoX ba! ^^
Forum: balkan-paradise.info- Još u izradi!

Å minker

e al sere nes :D baca mi error pogledaj

C:\DOCUME~1\PaNtEk!\Desktop\TESTSE~1\GAMEMO~1\gf.pwn(9960) : error 017: undefined symbol "IsNgCar"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


red
if(IsACopCar(newcar) || IsNgCar(newcar) || IsAnFbiCar(newcar))

obrisi u tom redu:

ng npr:

if(IsACopCar(newcar) || IsAnFbiCar(newcar))


[BP] HeLoX ba! ^^
Forum: balkan-paradise.info- Još u izradi!

Å minker