Fail the cmd
#1

How to make the command fails if the player left the interior ??
Reply
#2

Explain littile bit more?... I can't understand you....
Reply
#3

pawn Код:
if(GetPlayerInterior(playerid) != YourInteriorID)
    return SendClientMessage(playerid, -1, "ERROR: You have left the interior *");
Hope this helps!
Reply
#4

no i mean how to make the robbery fails when the player leaves the interior
Reply
#5

PHP код:
if(PlayerFuctionRobbery[playerid] > 0)
    if(
GetPlayerInterior(playerid) != YourInteriorID)
        return 
SendClientMessage(playerid, -1"ERROR: You have left the interior *"), PlayerFuctionRobbery[playerid] = 0
OnPlayerUpdate
Reply
#6

In OnPlayerChangeInterior check if the player's robbery was in progress and do you code to stop it.

DanDRT, do not use OnPlayerUpdate for that. There's already a callback that is called whenever a player changes interior.
Reply
#7

i want something like:
when the player leaves the interior, SendClientMessage "Robbery Failed! you have left the casino"

so that will force him to stay in the casino to complete the robbery
Reply
#8

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
In OnPlayerChangeInterior check if the player's robbery was in progress and do you code to stop it.

DanDRT, do not use OnPlayerUpdate for that. There's already a callback that is called whenever a player changes interior.
I had forgotten this function :$
Reply
#9

OnPlayerChangeInterior is undefined symbol
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)