Help With some commands
#1

I want to know how i can make a car dealership in las venturas or how to create a car dealership of my own or any filterscript that works with latest samp client
And

Quote:

if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFF4500AA,"You have killed yourself using /kill");
//suicide cmd
return 1;
}

This is the kill command but i want to create this command so that wanted players cant use the command

please make quotes and send a kill command that cant be used by wanted players i need the full command not only like add this line blah blah i need the whole command like the whole command should be added to the quote above and replied

I will add one rep if u help me pleaaaase help me please
Reply
#2

pawn Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
if(GetPlayerWantedLevel(playerid) > 0)
    {
    return SendClientMessage(playerid,0xFF4500AA,"You can't use this command while wanted!");
    }
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, 0xFF4500AA,"You have killed yourself using /kill");
//suicide cmd
return 1;
}
Reply
#3

Untested, hope it works:
pawn Код:
if (strcmp("/kill", cmdtext, true, 4) == 0)
{
    if GetPlayerWantedLevel(playeird) >= 1
    {
        SendClientMessage(playerid, 0xFF4500AA,"You can kill yourself when you are wanted");
    }
    else
    {
        SetPlayerHealth(playerid, 0);
        SendClientMessage(playerid, 0xFF4500AA,"You have killed yourself using /kill");
    }
    return 1;
}
Reply
#4

still not workin
Reply
#5

As in?
Reply
#6

Whose? (kiska?)
Reply
#7

mine it gives one error
Reply
#8

pawn Код:
if(strcmp("/kill", cmdtext, true) == 0)
{
    if(GetPlayerWantedLevel(playerid) >= 1) return SendClientMessage(playerid, 0xFFFFFFFF, "You can not use the command because it is being Sought");
    }else{
    SetPlayerHealth(playerid , 0);
    SendClientMessage(playerid, 0xFFFFFFFF, "You committed suicide , Using : /kill");
    return 1;
}
Try this.
Reply
#9

Quote:
Originally Posted by .FuneraL.
Посмотреть сообщение
pawn Код:
if(strcmp("/kill", cmdtext, true) == 0)
{
    if(GetPlayerWantedLevel(playerid) >= 1 return SendClientMessage(playerid, 0xFFFFFFFF, "You can not use the command because it is being Sought");
    }else{
    SetPlayerHealth(playerid , 0);
    SendClientMessage(playerid, 0xFFFFFFFF, "You committed suicide , Using : /kill");
    return 1;
}
Try this.
It will generate an error due to the missing bracket.
Reply
#10

Quote:
Originally Posted by blank.
Посмотреть сообщение
It will generate an error due to the missing bracket.
Edited.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)