|
i mean can i prison someone that is not online like /offlineprison [Name] [TIME] [REASON]
and then when he comes online he will get in prison |

|
I have a request!
After testing few gamemods I found most of them are for lots of people, but I'm aiming to run a lan server for few people, at most 6, with events like DM, Races, a lot of Weapon and Vehicle Spawing... I guess there's some gamemod like this already... well, I need your help. ![]() Thanks in advance! |
|
i mean can i prison someone that is not online like /offlineprison [Name] [TIME] [REASON]
and then when he comes online he will get in prison |
|
Not possible i think, you could use CreateExplosion and do the same effect tho, just without the smoke.
not sure if this health thing will work but couldn't be bothered making a timer. Код:
if(strcmp(cmd, "/explodeme", true) == 0)
{
SetPlayerHealth(playerid, 9999);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z+1, 0, 10.0);
CreateExplosion(x, y, z+2, 0, 10.0);
CreateExplosion(x, y, z+3, 0, 10.0);
CreateExplosion(x, y, z+5, 0, 10.0);
CreateExplosion(x, y, z+7, 0, 10.0);
CreateExplosion(x, y, z+8, 0, 10.0);
CreateExplosion(x, y, z+9, 0, 10.0);
CreateExplosion(x, y, z+10, 0, 10.0);
CreateExplosion(x, y, z+11, 0, 10.0);
CreateExplosion(x, y, z+12, 0, 10.0);
CreateExplosion(x, y, z+13, 0, 10.0);
CreateExplosion(x, y, z+15, 0, 10.0);
CreateExplosion(x, y, z+17, 0, 10.0);
CreateExplosion(x, y, z+18, 0, 10.0);
CreateExplosion(x, y, z+19, 0, 10.0);
CreateExplosion(x, y, z+20, 0, 10.0);
SetPlayerHealth(playerid, 100);
return 1;
}
Код:
COMMAND:explodeme(playerid, params[])
{
SetPlayerHealth(playerid, 9999);
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateExplosion(x, y, z+1, 0, 10.0);
CreateExplosion(x, y, z+2, 0, 10.0);
CreateExplosion(x, y, z+3, 0, 10.0);
CreateExplosion(x, y, z+5, 0, 10.0);
CreateExplosion(x, y, z+7, 0, 10.0);
CreateExplosion(x, y, z+8, 0, 10.0);
CreateExplosion(x, y, z+9, 0, 10.0);
CreateExplosion(x, y, z+10, 0, 10.0);
CreateExplosion(x, y, z+11, 0, 10.0);
CreateExplosion(x, y, z+12, 0, 10.0);
CreateExplosion(x, y, z+13, 0, 10.0);
CreateExplosion(x, y, z+15, 0, 10.0);
CreateExplosion(x, y, z+17, 0, 10.0);
CreateExplosion(x, y, z+18, 0, 10.0);
CreateExplosion(x, y, z+19, 0, 10.0);
CreateExplosion(x, y, z+20, 0, 10.0);
SetPlayerHealth(playerid, 100);
return 1;
}
|
would be so cool to make roller coaster kinda thing 
#include <a_samp>
forward score();
public OnGameModeInit()
{
SetTimer("score",120000,true);
}
public score()
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
}
|
i hope it will
would be so cool to make roller coaster kinda thing ![]() can u guys tell me what i must do to make this work ? (after 2 mins comes +1 point to score) Код:
#include <a_samp>
forward score();
public OnGameModeInit()
{
SetTimer("score",120000,true);
}
public score()
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1);
}
|
#include <a_samp>
forward score();
public OnGameModeInit()
{
SetTimer("score",120000,true);
}
public score()
{
for(new i = 0; i < MAX_PLAYERS; i++);
{
SetPlayerScore(i, GetPlayerScore(i) + 1);
}
}
#include <a_samp>
new ScoreTime[MAX_PLAYERS];
forward Score(playerid);
public OnPlayerConnect(playerid)
{
ScoreTime[playerid] = SetTimerEx("Score", 120000, true, "i", playerid);
return 1;
}
public OnPlayerDisconnect(playerid)
{
KillTimer(ScoreTime[playerid]);
return 1;
}
public Score(playerid)
{
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
return 1;
}

if(IsPlayerInRangeOfPoint(playerid, 5, pick xyz))
{
//set skin stuff
return 1;
}
|
Hey everyone
Wondering if anyone could help me with something. I would like it that when you pick up a pickup the person obtains a skin. CreatePickup(1275, 2, 2244.4268, -1162.7134, 1029.7969, -1); This is all i got so far, thanks for the help in advance |
CreatePickup(1275, 2, 2244.4268, -1162.7134, 1029.7969, -1); // Get the ID of this pickup
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == 0) SetPlayerSkin(playerid, 99); // The `0` should be changed to the pickupid, and the 99 to the wanted skin.
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
switch(pickupid)
{
case 0: SetPlayerSkin(playerid, 99); // The `0` should be changed to the pickupid, and the 99 to the wanted skin.
}
}