SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 06/08/2012, 11:10 PM   #1
RLGaming
Huge Clucker
 
Join Date: Dec 2011
Posts: 381
Reputation: 35
Default /tazer and /r help

Can someone make me a tazer cmd?

It would be someone like:
CMD:tazer(playerid, params[])
{
if(PlayerInfo[playerid][pLSPD] == 1;


Idk, but if there =1 to LSPD there apart of the LSPD so they can use it, and it goes to rank six

So could anyone help me or give me a cmd please, i cant get it to work

also my /r command will only send 3 characters
CMD:r(playerid, params[])
{
new sendingname[MAX_PLAYER_NAME], string[160];
new rank = PlayerInfo[playerid][pLSPD];
if(rank < 1) return SCM(playerid, COLOR_WHITE, "You are not a member of the LSPD.");
if(isnull(params)) return SCM(playerid, COLOR_WHITE, "USAGE: /r [radio chat]");
GetPlayerName(playerid, sendingname, sizeof(sendingname));
new i;
while(sendingname[i])
{
if(sendingname[i] == '_') sendingname[i] = ' ';
i++;
}
format(string, sizeof(sendingname),"* (R%d) %s: %s", rank, sendingname, params);
SendLSPDMessage(COLOR_LIGHTBLUE, string);
return 1;
}

I twill send 3 chars only, help, it's not because of the 160 string i tried 128 etc

thanks guys<3
RLGaming is offline   Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Tazer FS swat365 Scripting Help 3 05/01/2012 04:39 PM
[HELP] Tazer joeri55 Help Archive 2 02/06/2011 01:40 AM
Tazer with a gun vection Help Archive 6 23/08/2010 11:45 PM
tazer TouR Help Archive 3 24/06/2010 07:21 PM
[HELP] Tazer Gun Karl115 Help Archive 21 20/06/2010 06:21 PM


All times are GMT. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.