[pomoc]

Započeo Danisha, Avgust 23, 2012, 22:22:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Ravens
Detaljan opis problema:Mozel neko da mi prebaci iz strcmp u zcmd plss hitno mi je ovu komandu da mi probaci
Dio skripte:CMD:vuci(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid) || PlayerInfo[playerid][Admin] >= 1338)
{
new giveplayerid, giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME],string[128];
if(sscanf(params,"u",giveplayerid)) return SCM(playerid,COLOR_GREY,"Koriscenje: /vuci [playeridID/Ime_Igraca]");
if(giveplayerid != INVALID_PLAYER_ID)
{
if(PlayerInfo[playerid][Admin] < 1338)
{
if(PlayerCuffed[giveplayerid] != 2)
{
SCM(playerid, COLOR_GREY, "   Igracu nisu stavljene lisice!");
return 1;
}
}
if(IDVucenogIgraca[playerid] != 9999) return SCM(playerid, COLOR_GREY, "Ne mozete vuci vise od jednog igraca u isto vreme");
if(IsPlayerInAnyVehicle(playerid)) return SCM(playerid, COLOR_GREY, "Izadjite iz vozila prvo!");
if(IsPlayerInAnyVehicle(giveplayerid)) return SCM(playerid, COLOR_GREY, "Morate prvo izbaciti igraca iz vozila!");
if(ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SCM(playerid, COLOR_GREY, "Ne mozete vuci sami sebe!"); return 1; }
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s vas vuce.", sendername);
SCM(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Vucete %s.", giveplayer);
SCM(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "* %s vuce %s.", sendername ,giveplayer);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
IDVucenogIgraca[playerid] = giveplayerid;
Vucen[giveplayerid] = playerid;
VuciTimer[playerid] = SetTimerEx("Vuci", 800, true, "i", playerid, 1);
}
}
else
{
SCM(playerid, COLOR_GREY, "   Taj igrac nije blizu vas !");
return 1;
}
}
}
else
{
SCM(playerid, COLOR_GREY, "Niste PD / FBI / JSO");
}
}
return 1;
}
CMD:pusti(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(IsACop(playerid) || PlayerInfo[playerid][Admin] >= 1338)
{
new giveplayerid, giveplayer[MAX_PLAYER_NAME], sendername[MAX_PLAYER_NAME],string[128];
if(sscanf(params,"u",giveplayerid)) return SCM(playerid,COLOR_GREY,"Koriscenje: /pusti [playeridID/Ime_Igraca]");
if(giveplayerid != INVALID_PLAYER_ID)
{
if(ProxDetectorS(8.0, playerid, giveplayerid))
{
if(giveplayerid == playerid) { SCM(playerid, COLOR_GREY, "Ne mozete sebe pustiti!"); return 1; }
if(giveplayerid == IDVucenogIgraca[playerid])
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s vas je pustio.", sendername);
SCM(giveplayerid, COLOR_WHITE, string);
format(string, sizeof(string), "* Pustili ste %s.", giveplayer);
SCM(playerid, COLOR_WHITE, string);
KillTimer(VuciTimer[playerid]);
IDVucenogIgraca[playerid] = 9999;
Vucen[giveplayerid] = 9999;
}
else
{
SCM(playerid, COLOR_GREY, "   Ne vucete tog igraca!");
return 1;
}
}
else
{
SCM(playerid, COLOR_GREY, "   Taj igrac nije blizu vas !");
return 1;
}
}
}
else
{
SCM(playerid, COLOR_GREY, "Niste PD / FBI / JSO");
}
}
return 1;
}

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

Citat: Danisha poslato Avgust 23, 2012, 22:22:54 POSLE PODNE
Dodatni opis problema:Mozel neko da mi prebaci iz strcmp u zcmd plss hitno mi je ovu komandu da mi probaci

Pa vec ti je u ZCMD :o
Poslednja Izmena: Avgust 23, 2012, 22:34:48 POSLE PODNE od [X:RP] ColdPlay