16.08.2010, 22:46
I am using Raven's RolePlay, and haven't changed anything, but it seems the /tazer command stopped tazing all I get now is no suspect close, and of course there is a suspect that is right near me... here is the code...
off to the nest question, I try to place a infopick upand 3d label text.. in the clothes store in bincos but nothing shows... I place it with the other pickups and do a /upload.... but doesn't work... I use /save...
and I got that from my savedpositions.txt... am I getting the wrong numbers??
AddPlayerClass(288,207.4420,-100.8607,1005.2578,355.9269,0,0,0,0,0,0); // clothestore
thanks alot!!!
Код:
if(strcmp(cmd, "/tazer", true) ==0 || strcmp(cmd, "/ta", true) ==0) { if(IsACop(playerid) && PlayerInfo[playerid][pDuty] == 1) { if(Tazer[playerid] == 0) { if(GetPlayerWeapon(playerid) == 24) { new ammo = GetPlayerAmmo(playerid); PreTazerAmmo[playerid] = ammo; SafeGivePlayerWeapon(playerid, 23, PlayerInfo[playerid][pTazerBullets]); Tazer[playerid] = 1; SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, 500); OnePlayAnim(playerid,"SWORD","sword_block",50.0,0,1,1,1,1); format(string, sizeof(string), "* %s hostlers his Desert Deagle and Unhostlers his Tazer.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5); SendClientMessage(playerid, COLOR_NICERED,"* CAUTION: Always Keep ONE bullet at the Tazer, Else you wont be able to get your Deagle!!!"); } else { SendClientMessage(playerid, COLOR_GREY,"* You must have your Desert Deagle in your hand"); return 1; } } else { if(GetPlayerWeapon(playerid) == 23) { new ammo = GetPlayerAmmo(playerid); PlayerInfo[playerid][pTazerBullets] = ammo; SafeGivePlayerWeapon(playerid, 24, PreTazerAmmo[playerid]); Tazer[playerid] = 0; ClearAnimations(playerid); SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL_SILENCED, PlayerInfo[playerid][pSilenSkill]); format(string, sizeof(string), "* %s hostlers his tazer and Unhostlers his Deagle.", sendername); ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5); } else { SendClientMessage(playerid, COLOR_GREY,"* You must have your Tazer in your hand"); return 1; } } } return 1; }
Код:
else if ((newkeys & KEY_FIRE)) { if(IsACop(playerid) && GetPlayerWeapon(playerid) == 23 && Tazer[playerid] == 1) { new Float:X,Float:Y,Float:Z,Float:pX,Float:pY,Float:pZ; GetPlayerPos(playerid, pX,pY,pZ); for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(IsPlayerInRangeOfPoint(i,30, pX,pY,pZ) && PlayerInfo[i][pWanted] == 1) { if(i != playerid) { GetPlayerPos(i, X,Y,Z); new iname[MAX_PLAYER_NAME]; GetPlayerName(i, iname, sizeof(iname)); if(IsPlayerAimingAt(playerid, X,Y,Z,1)) { GameTextForPlayer(i,"~r~BEING TAZED",9000,4); GameTextForPlayer(playerid, "~b~USING THE TAZER",2000,4); TogglePlayerControllable(i, 0); TogglePlayerControllable(playerid, 0); ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); SetTimerEx("Unfreezeply",9000,0,"i",i); ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1); SetTimerEx("Unfreezeply",2000,0,"i",playerid); format(string, sizeof(string),"* %s Aims his Tazer at %s and Shoots it",sendername,iname); } else return GameTextForPlayer(playerid, "~b~Missed the Shoot",3750,4); } } else return GameTextForPlayer(playerid, "~b~No Suspects Near!",3750,4); } } }
Код:
new Float:InfoPickups[][] = { {207.4420,-100.8607,1005.2578},
AddPlayerClass(288,207.4420,-100.8607,1005.2578,355.9269,0,0,0,0,0,0); // clothestore
thanks alot!!!