how to make a player stone when smoking?
#1

dcmd_cig(playerid,params[])
{
#pragma unused params
if(GetPlayerSpecialAction(playerid) != 21)
SetPlayerSpecialAction(playerid,21);
else
SetPlayerSpecialAction(playerid, 0);
return 1;
}
Reply
#2

you mean drunk vision ??
SetPlayerDrunkLevel
Reply
#3

Quote:
Originally Posted by hossa
Посмотреть сообщение
you mean drunk vision ??
SetPlayerDrunkLevel
Noo, all you see is the trees moving and the weather turns like purple
Reply
#4

Код:
i'm not a pro scripter but you need to use OnPlayerUpdate to check if player is drunk and set his weather to the " Purple " weather you want. and set it to normal if he isn't drunk.

and btw
Quote:
Originally Posted by eblood1
Посмотреть сообщение
all you see is the trees moving
where did you see that ? lol
Reply
#5

pawn Код:
dcmd_cig(playerid,params[])
{
    #pragma unused params
    if(GetPlayerSpecialAction(playerid) != 21)
    {
        SetPlayerSpecialAction(playerid,21);
        SetPlayerWeather(playerid, -66); // <== Stone weather
    }
    else
    {
        SetPlayerSpecialAction(playerid, 0);
        SetPlayerWeather(playerid, 3); // <== Normal weather
    }
    return 1;
}
I script blind without using pawno or testing in-game, so check it the weather id is -66 or -68 please.
Everything else should work.
Reply
#6

Quote:
Originally Posted by hossa
Посмотреть сообщение
Код:
i'm not a pro scripter but you need to use OnPlayerUpdate to check if player is drunk and set his weather to the " Purple " weather you want. and set it to normal if he isn't drunk.

and btw


where did you see that ? lol
this. [ame]http://www.youtube.com/watch?v=RdIU9FkYSJk[/ame]
is not really a mod i seen it in some server
Reply
#7

Quote:
Originally Posted by BullseyeHawk
Посмотреть сообщение
pawn Код:
dcmd_cig(playerid,params[])
{
    #pragma unused params
    if(GetPlayerSpecialAction(playerid) != 21)
    {
        SetPlayerSpecialAction(playerid,21);
        SetPlayerWeather(playerid, -66); // <== Stone weather
    }
    else
    {
        SetPlayerSpecialAction(playerid, 0);
        SetPlayerWeather(playerid, 3); // <== Normal weather
    }
    return 1;
}
I script blind without using pawno or testing in-game, so check it the weather id is -66 or -68 please.
Everything else should work.
Quote:
Originally Posted by eblood1
Посмотреть сообщение
this. http://www.youtube.com/watch?v=RdIU9FkYSJk
is not really a mod i seen it in some server
here is the script you want, I was just Lol'ng at the moving trees ^_^
@BullseyeHawk, i think it should work if weather is right
Reply
#8

I have also seen this in a server ^_^ I been looking for it for a long time :L
Reply
#9

Thanks <3 BullseyeHawk and hossa
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)