Red Portal?
#1

I have the entry cord and the exit cord with strcmp how can i do red portal thing?
Reply
#2

OnPlayerEnterCheckpoint
Reply
#3

But how do i display "type /rob"
Reply
#4

Quote:
Originally Posted by phil_lendon
Посмотреть сообщение
But how do i display "type /rob"
Create3DTextLabel(text[], color, Float:X, Float:Y, Float:Z, FloatrawDistance, virtualworld, testLOS); // The smile appears because there is Float: DrawDistance ( : D )

Do with the command /rob:

pawn Код:
if(IsPlayerInCheckpoint(playerid) && PlayerToPoint(playerid, X, Y, Z) < 5) //Change x y and z to the pos of  the checkpoint
{
    new money = /*Minimum Ammount*/ + random(/*Maximum Ammount*/);
    GivePlayerMoney(playerid, money);
    SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
    PlayCrimeReportForPlayer(playerid, playerid, 5); //This is used to hear the sound report of the cops, like in GTA:SA
}
Reply
#5

error 029: invalid expression, assumed zero
error 001: expected token: ";", but found ")"
error 001: expected token: ",", but found "-identifier-"
fatal error 107: too many error messages on one line

for the /rob command part, any help?
Reply
#6

Quote:
Originally Posted by phil_lendon
Посмотреть сообщение
error 029: invalid expression, assumed zero
error 001: expected token: ";", but found ")"
error 001: expected token: ",", but found "-identifier-"
fatal error 107: too many error messages on one line

for the /rob command part, any help?
pawn Код:
if(strcmp(cmd, "/rob", true) == 0)
{
    if(IsPlayerInCheckpoint(playerid) && PlayerToPoint(playerid, X, Y, Z) < 5)
    {
        //code
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)