[POMOC] /cuff 0.3e


Započeo mr.co0per, Septembar 04, 2012, 11:38:35 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:CLRP
Detaljan opis problema:Pa ovako Dodao sam /cuff sa 0.3e  i sad iskocu mi errori " newkeys " obrisem to daje error " oldkeys " i to obrisem daje 4errore ... Jevo vam moja cmd /cuff
Dio skripte:/CUFF
Neke slike/video za lakse dobivanje pomoci(neobavezno): Ne treba

if(strcmp(cmd, "/cuff", true) == 0 || strcmp(cmd, "/cuff", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if(gTeam[playerid] == 2 || IsACop(playerid))
			{
				if(KnockedDown[playerid] == 1)
				{
					SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}GRESKA:{FFFFFF}Nemozete da stavite lisici, bidejki ste na zemja.");
					return 1;
				}
				if(PlayerTied[playerid] == 1)
				{
					SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}GRESKA:{FFFFFF}Zavrzani ste so Jazhe !.");
					return 1;
				}
			    tmp = strtok(cmdtext, idx);
				if(!strlen(tmp)) {
					SendClientMessage(playerid, COLOR_YELLOW, "{FF8306}KORISTETE:{FFFFFF}/cuff [ID/Ime na Igracot].");
					return 1;
				}
				giveplayerid = ReturnUser(tmp);
			    if(IsPlayerConnected(giveplayerid))
				{
				    if(giveplayerid != INVALID_PLAYER_ID)
				    {
				        if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))
				        {
				            SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}GRESKA:{FFFFFF}Nemozete da stavite Lisici na MVR Lice.");
					        return 1;
				        }
					    if(PlayerCuffed[giveplayerid] > 1)
					    {
					        SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}GRESKA:{FFFFFF}Igracot vekje ima lisici.");
					        return 1;
					    }
						if (ProxDetectorS(2.0, playerid, giveplayerid))
						{
						    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}GRESKA:{FFFFFF}Nemozete na samiot sebe si."); return 1; }
						    {
                                TogglePlayerControllable(giveplayerid, 0);
								ClearAnimations(giveplayerid);
							//	ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0,1);
								if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED)        ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
								GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
								GetPlayerName(playerid, sendername, sizeof(sendername));
						               format(string, sizeof(string), "{37F906}INFO:{FFFFFF}%s vi stavi lisici.", sendername);
								SendClientMessage(giveplayerid, COLOR_YELLOW, string);
								format(string, sizeof(string), "{37F906}INFO:{FFFFFF}Stavivte lisici na %s.", giveplayer);
								SendClientMessage(playerid, COLOR_YELLOW, string);
								format(string, sizeof(string), "* %s stava lisici na %s.", sendername ,giveplayer);
								ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
								GameTextForPlayer(giveplayerid, "~r~Imate lisici.", 2500, 3);
								PlayerCuffed[giveplayerid] = 2;
								PlayerCuffedTime[giveplayerid] = 999999999999999;
						    }

						}
						else
						{
						    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}GRESKA:{FFFFFF}Igracot ne e do vas.");
						    return 1;
						}
					}
				}
				else
				{
				    SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}GRESKA:{FFFFFF}Nema takov igrac.");
				    return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_YELLOW, "{FF0000}GRESKA:{FFFFFF}Ne ste clen na MVR.");
			}
		}
		return 1;
	}
ScripT

probaj ovo:
if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);



samo izbrisi onaj drugi i stavi ovaj moj..
Poslednja Izmena: Septembar 04, 2012, 11:49:48 PRE PODNE od Billic
╭∩╮(︶_︶)╭∩╮

<3 ANTE GOTOVINA <3
[/b]

Vegas.