06.08.2012, 23:10
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
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

