CNR help
#1

How do i make wanted level i mean wat's the pawno code for it and an example for it ?
Reply
#2

pawn Код:
SetPlayerWantedLevel(playerid, 6);
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Reply
#3

ok so for example if i make a cp for robbery and a player enters and types the rob cmd there then the player will get wanted level ?
and how do i make a cmd only in side cp like if player is out of cp he cant use /robshop cmd?
Reply
#4

PLEASE HELP SOMEONE
Reply
#5

Under "the rop CMD" add

Код:
SetPlayerWantedLevel(playerid, 6);
Reply
#6

Using zcmd:

pawn Код:
CMD:rob(playerid, params[])
{
    if(!IsPlayerInCheckpoint(playerid))
        SendClientMessage(playerid, -1, "You need to be in a checkpoint in order to do this command!");

    SetPlayerWantedLevel(playerid, 1);

    return 1;
}
Reply
#7

ok ty but im using dynamic checkpoint so it should be
[CODE]if(!IsPlayerInCheckpoint(playerid))
if(!checkpointid == 0)
RIGHT ??
Reply
#8

pawn Код:
CMD:rob(playerid, params[])
{
    if(IsPlayerInCheckpoint(playerid));
    {
        SetPlayerWantedLevel(playerid, 1);//If they're in the checkpoint it'll give them 1 star
    }
    else SendClientMessage(playerid, -1, "You're not in the checkpoint"); //If they're not
    return 1;
}
You could also put it under OnPlayerEnterDynamicCheckpoint(checkpointname) since you're using the dynamic streamer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)