/mask for RP Script
#1

Hello guys, I would like to ask if someone have the cmd /mask for RP server/script
Like from NG:RP. The name will be Stranger but they need to buy from 24/7 (market) first.
So if someone have this already, please help me
Reply
#2

Try using this mask system here: http://pastebin.com/JQSxNWK4 It was made by a different member, but I use it in my script and it works good for me. If you want them to buy it in a 24/7, Add
pawn Код:
if(IsPlayerInRangeOfPoint, 20.0, x, y, z);
Hope I helped you a bit!
Reply
#3

Add this where?

pawn Код:
if(IsPlayerInRangeOfPoint, 20.0, x, y, z);
Sorry I'm noob at scripting
Reply
#4

Quote:
Originally Posted by DouglasRamirez
Посмотреть сообщение
Add this where?

pawn Код:
if(IsPlayerInRangeOfPoint, 20.0, x, y, z);
Sorry I'm noob at scripting
Go inside your 24/7 store, use the command /save, Get the coordinates from your documents folder (Start > Documents > GTA San Andreas User Files > SAMP > Saved Positions), Then use only the 3 numbers I marked in GREEN.

Copy from YOUR files
Do not copy at all

Example: AddPlayerClass(0,-2697.2493,-1885.4845,103.6229,240.2237,0,0,0,0,0,0);

Dont copy my codes, Copy the one you /saved.
Reply
#5

Yeah, I mean Which line? in the pawno
Reply
#6

Quote:
Originally Posted by DouglasRamirez
Посмотреть сообщение
Yeah, I mean Which line? in the pawno
Just like this. Sorry for the misunderstanding.

Example:
pawn Код:
CMD:mask(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 20.0, x, y, z); // Right here
    if(Masked[playerid] == 0)
    {
        new randomID = random(200);
        new string[35];
Reply
#7

it will be like this?

pawn Код:
CMD:mask(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 20.0, x, y, z); -25.7964,-184.3953,1003.5469
    if(Masked[playerid] == 0)
OR

pawn Код:
CMD:mask(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 20.0, -25.7964, -184.3953, 1003.5469);
    if(Masked[playerid] == 0)
Reply
#8

Quote:
Originally Posted by DouglasRamirez
Посмотреть сообщение
it will be like this?

pawn Код:
CMD:mask(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 20.0, x, y, z); -25.7964,-184.3953,1003.5469
    if(Masked[playerid] == 0)
It would be like this:

pawn Код:
CMD:mask(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 20.0, -25.7964,-184.3953,1003.5469);
    if(Masked[playerid] == 0)
Reply
#9

It will be listed on the /buy ? and how much is the price?

SORRY :C


got two errors

pawn Код:
C:\Users\user\Desktop\[0.3x]Razer Roleplay\gamemodes\RZRP.pwn(95873) : error 001: expected token: ")", but found ";"
C:\Users\user\Desktop\[0.3x]Razer Roleplay\gamemodes\RZRP.pwn(95873) : error 036: empty statement
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


This is it
pawn Код:
new OldUsername[MAX_PLAYER_NAME][MAX_PLAYERS];
new Masked[MAX_PLAYERS] = 0;

CMD:mask(playerid, params[])
{
    if(IsPlayerInRangeOfPoint(playerid, 20.0, -25.7964,-184.3953,1003.5469);
    if(Masked[playerid] == 0)
    {
        new randomID = random(200);
        new string[35];
        Masked[playerid] = 1;
        GetPlayerName(playerid, string, sizeof(string));
        strmid(OldUsername[playerid], string, 0, strlen(string), 64);
        format(string,sizeof(string), "Stranger", randomID);
        SetPlayerName(playerid, string);
        SetPlayerAttachedObject(playerid, 1, 19037, 2, 10, 4.7, 0.0, 90, 90, 0);
        SendClientMessage(playerid, COLOR_WHITE, "You have put on a mask! (/mask to romove it)");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            ShowPlayerNameTagForPlayer(i, playerid, 0);
        }
    }
    else
    {
        SetPlayerName(playerid, OldUsername[playerid]);
        Masked[playerid] = 0;
        SendClientMessage(playerid, COLOR_WHITE, "You have removed your mask!");
        if(IsPlayerAttachedObjectSlotUsed(playerid, 1)) RemovePlayerAttachedObject(playerid, 1);
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            ShowPlayerNameTagForPlayer(i, playerid, 1);
        }
    }
    return 1;
}
Reply
#10

Quote:
Originally Posted by DouglasRamirez
Посмотреть сообщение
It will be listed on the /buy ? and how much is the price?

SORRY :C
Send me your /buy command, and I'll add it in there.

EDIT: Show me line 95873.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)