[Pomoc] Setskin,gethere.

Započeo Leo VRP, Januar 27, 2012, 15:34:06 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim:CYBER
Detaljan opis problema: Znaci nekom idem promjenit skin on promjeni ID-u 0 isto tako i za gethere.
Dio skripte: CMD:gethere(playerid,params[])
{
new
plo,
Float:plocx,
Float:plocy,
Float:plocz;
if (sscanf(params, "u", plo)) SendClientMessage(playerid, COLOR_GRAD4, "Koristi: /gethere [ID]");
else if (plo == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_GRAD4, "[Greska]: Igrac nije online.");
else
{
   if(PlayerInfo[playerid][Admin] < 3) { SCM(playerid,COLOR_GRAD4,"[Greska]: Samo administrator moze koristiti ovu komandu."); return 1; }
           GetPlayerPos(playerid, plocx, plocy, plocz);
       if(PlayerInfo[playerid][pInt] > 0)
       {
SetPlayerInterior(plo,PlayerInfo[playerid][pInt]);
PlayerInfo[plo][pInt] = PlayerInfo[playerid][pInt];
PlayerInfo[plo][pLocal] = PlayerInfo[playerid][pLocal];
       }
     if(PlayerInfo[playerid][pInt] == 0)
       {
SetPlayerInterior(plo,0);
       }
       if(plocz > 930.0 && PlayerInfo[playerid][pInt] == 0)
       {
SetPlayerInterior(plo,1);
PlayerInfo[plo][pInt] = 1;
   }
       if (GetPlayerState(plo) == 2)
       {
TelePos[plo][0] = 0.0;
TelePos[plo][1] = 0.0;
new tmpcar = GetPlayerVehicleID(plo);
SetVehiclePos(tmpcar, plocx, plocy+4, plocz);
       }
       else
       {
SetPlayerPos(plo,plocx,plocy+2, plocz);
       }
            SendClientMessage(plo, COLOR_GRAD1, "[INFO]: Teleportiran si.");
    }
    return 1;
}
CMD:unrentcar(playerid,params[])
{
        new veh;
        veh = GetPlayerVehicleID(playerid);
    if(IsPlayerConnected(playerid))
{
if(HireCar[playerid] != 299)
{
gCarLock[HireCar[playerid]] = 0;
UnLockCar(HireCar[playerid]);
RentaBike[playerid] = 0;
HireCar[playerid] = 299;
SetVehicleToRespawn(veh);
GameTextForPlayer(playerid, "~w~Vise ne rentas auto.", 5000, 3);
}
}
return 1;
}

Setskin: CMD:setskin(playerid,params[])
{
   new Id,skin,string[128],ime[MAX_PLAYER_NAME],ime2[MAX_PLAYER_NAME],
   Float:X,Float:Y,Float:Z;
   GetPlayerName(playerid,ime, MAX_PLAYER_NAME);
   if (sscanf(params, "ud", Id,skin)) SendClientMessage(playerid, ZUTA, "Komanda: /setskin [IgracevID/DeoImena] [ID skina]");
   else if (Id == INVALID_PLAYER_ID) SendClientMessage(playerid, CRVENA, "[Greska]: Taj igrac je Offline !");
   else
   {
   if(PlayerInfo[playerid][Admin] >= 2)
   {
  GetPlayerPos(Id,X,Y,Z);
          GetPlayerName(playerid,ime2, MAX_PLAYER_NAME);
  SetPlayerSkin(Id,skin);
  format(string, sizeof string,"[Admin] %s ti je namestio skin ID: %d",ime,skin);
  SCM(Id,COLOR_TEXT,string);
  PlayerPlaySound(playerid, 1057, X, Y, Z);
  PlayerPlaySound(Id, 1057, 0.0, 0.0, 0.0);
  format(string, sizeof string,"Namestio si: %s skin id %d",ime2,skin);
  SCM(playerid,LJUBICASTA,string);
   }
   else
   {
   SCM(playerid,CRVENA,"[Greska]: Moras biti Admin:lvl2 za ovu komandu !");
   }
   }
   return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):



Edit: Isto mi to radi i na /check /spec itd.

Hvala unaprijed
Poslednja Izmena: Januar 27, 2012, 15:35:20 POSLE PODNE od Leo VRP

Skini najnoviji sscanf.
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Citat: Get busy living or Get busy dying poslato Januar 27, 2012, 15:42:29 POSLE PODNESkini najnoviji sscanf.
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d-R2, (C)2005-2011 SA-MP Team

[15:52:12]
[15:52:12] Server Plugins
[15:52:12] --------------
[15:52:12]  Loading plugin: streamer.so
[15:52:13]   Failed.
[15:52:13]  Loading plugin: sscanf.so
[15:52:14]   Failed.
[15:52:14]  Loaded 0 plugins.

[15:52:14]
[15:52:14] Ban list
[15:52:14] --------
[15:52:14]  Loaded: samp.ban
[15:52:14]
[15:52:14]
[15:52:14] Filterscripts
[15:52:14] ---------------
[15:52:14]   Loading filterscript 'HeliOwnership.amx'...
[15:52:14]   Loading filterscript 'antiswear.amx'...
[15:52:14]   Unable to load filterscript 'antiswear.amx'.
[15:52:14]   Loading filterscript 'admin-vip.amx'...
[15:52:14]   Unable to load filterscript 'admin-vip.amx'.
[15:52:14]   Loaded 1 filterscripts.

[15:52:14] Script[gamemodes/vortex.amx]: Run time error 19: "File or function is not found"
[15:52:14] Number of vehicle models: 0

Moraš staviti sscanf.so u plugins mapu i sscanf2 include u mapu include
"I'm a loser and a user so I don't need no accuser" - Billie Joe Armstrong

Citat: Get busy living or Get busy dying poslato Januar 27, 2012, 15:57:46 POSLE PODNE
Moraš staviti sscanf.so u plugins mapu i sscanf2 include u mapu include
To sam i napravio i ne radi
Poslednja Izmena: Januar 27, 2012, 16:38:55 POSLE PODNE od Leo VRP


Citat: Leo VRP poslato Januar 27, 2012, 16:46:47 POSLE PODNE
Oce neko pomoc ??  :'( :'( :'(
Upozorenje na DP to ne smijes raditi...
Nisi nesto dobro stavio u server cfg. ili nesto nisi dobro ubacio evo ti link za scanf : http://forum.sa-mp.com/showthread.php?t=120356