CNR help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CNR help (
/showthread.php?tid=508249)
CNR help -
rockhopper - 21.04.2014
How do i make wanted level i mean wat's the pawno code for it and an example for it ?
Re: CNR help -
Flake. - 21.04.2014
pawn Код:
SetPlayerWantedLevel(playerid, 6);
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Re: CNR help -
rockhopper - 21.04.2014
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?
Re: CNR help -
rockhopper - 21.04.2014
PLEASE HELP SOMEONE
Re: CNR help -
Rockyyy - 21.04.2014
Under "the rop CMD" add
Код:
SetPlayerWantedLevel(playerid, 6);
Re: CNR help -
Dignity - 21.04.2014
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;
}
Re: CNR help -
rockhopper - 21.04.2014
ok ty but im using dynamic checkpoint so it should be
[CODE]if(!IsPlayerInCheckpoint(playerid))
if(!checkpointid == 0)
RIGHT ??
Re: CNR help -
Flake. - 21.04.2014
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.