killdahobo99
Unregistered
I'm trying to take the /skill command/textdraw from the lvrcrr script (what it does is lets you pick the skill from like 1-6 so like "medic, gun dealer" etc
Heres the pastebin for that script:
http://pastebin.com/m193ba115
Heres my script, in my attempting to take that command and im really close...but im getting errors. Can someone please fix it for me, I will pay $2 if ya want (thats all i have on paypal lol) Thanks a lot.
MY PASTEBIN:
http://pastebin.com/m752957a5
killdahobo99
Unregistered
Quote:
Originally Posted by snoob
|
Thanks for replying but now...anytime i try to type a command it keeps saying /cuff {playerid} even if i didnt type in /cuff
killdahobo99
Unregistered
Quote:
Originally Posted by coole210
I don't know if this is going to work...
pawn Код:
if (strcmp("/cuff", cmd, true) == 0) { if (gTeam[playerid] == TEAM_COP) { //new giveplayerid; new giveplayer[MAX_PLAYER_NAME]; new sendername[MAX_PLAYER_NAME]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_ORANGE,"USAGE: /cuff [playerid]"); if(IsPlayerConnected(strval(tmp)) == 0) return SendClientMessage(playerid, COLOR_ORANGE, "[ERROR]: The ID you have entered does not exist!"); if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot cuff yourself!"); return 1; } if(IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid, COLOR_GREY, "Cannot use this while being in the Car!"); if(GetDistanceBetweenPlayers(playerid) > CUFF/UNCUFF_DISTANCE) return SendClientMessage(playerid, COLOR_ERROR, "You are not close enough to that user"); giveplayerid = ReturnUser(tmp); if(gTeam[giveplayerid] == TEAM_COP) return SendClientMessage(playerid,COLOR_LIME,"You cannot cuff Law enforcement agents !"); TogglePlayerControllable(giveplayerid,0); GetPlayerName(giveplayerid,giveplayer,sizeof(giveplayer)); GetPlayerName(playerid,sendername,sizeof(sendername)); format(tmp,sizeof(tmp),"You have uncuffed %s",giveplayer); SendClientMessage(playerid,0x33AA33AA,tmp); format(tmp,sizeof(tmp),"You have been uncuffed by %s",sendername); SendClientMessage(giveplayerid,0xAA3333AA,tmp); } else return SendClientMessage(playerid, COLOR_LIME, "Only Law enforcement agents can use this command! "); return 1; }
|
I looked at the fixed version and just fixed the /skill part, its ok if i get those string errors...but the problem im having now is...I only want the civilians to be able to see the textdraw and use the command...the command part is easy to change, how can i make it so only the civilians can see the textdraw?
New pastebin:
http://pastebin.com/m5a120f6c
killdahobo99
Unregistered
Quote:
Originally Posted by snoob
Quote:
Originally Posted by killdahobo99
Quote:
Originally Posted by snoob
|
Thanks for replying but now...anytime i try to type a command it keeps saying /cuff {playerid} even if i didnt type in /cuff
|
How come i have to contact you by msn? I'll pm you.
Hi again
yhea i did find out later that i fix all the error but that code trouble was way deeper ...
so here is the fixed compiled .amx ... if you wanna have the .pwn contact me by msn.
http://www.studio2015.ca/001-Untitled.amx
this one was tested.
|
killdahobo99
Unregistered
Can someone help me with this part...its just this that is left and its probbaly easy for a lot of you.
I just need the textdraw to show for when the civilian team spawns. I'm not sure how i come about that though...
Heres the pastebin:
http://pastebin.com/m1c2a26f2