public C0(playerid)
{
new string[256];
format(string, sizeof(string), "~n~~n~~n~~g~ Wojna Gangow!!! ");
GameTextForAll(string, 8001, 3);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) WG40[i] = 0;
}
if(ONWG[playerid] == 1)
{
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
}
}
if(ONWG[playerid] == 1)
{
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
}
Originally Posted by pawelf94
pawn Код:
|
public C0(playerid)
{
new string[256];
format(string, sizeof(string), "~n~~n~~n~~g~ Wojna Gangow!!! ");
GameTextForAll(string, 8001, 3);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) WG40[i] = 0;
}
if(ONWG[playerid] == 1)
{
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
}
}
if(strcmp(cmd, "/wg1", true) == 0 && IsPlayerAdmin(playerid))
{
SetTimer("C0",41000,0);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) WG40[i] = 1, P30[i] = 1;
}
return 1;
}
Originally Posted by pawelf94
pawn Код:
pawn Код:
|
ONWG[playerid]=1; //(with just one "=" and with ";")
if(strcmp(cmd, "/dolacz", true) == 0)
{
if(ONWG[playerid] == 0)
{
if(WG40[playerid] == 1)
{
if(P30[playerid] == 1)
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) P29[i] = 1, P30[i] = 0;
}
ONWG[playerid] = 1;
GivePlayerWeapon(playerid, 343, 9999);
GivePlayerWeapon(playerid, 348, 9999);
GivePlayerWeapon(playerid, 351, 9999);
GivePlayerWeapon(playerid, 355, 9999);
GivePlayerWeapon(playerid, 353, 9999);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid,2190.2075,-1141.6069,1029.7969);
SetPlayerFacingAngle(playerid, 173.8527);
TogglePlayerControllable(playerid, 0);
SetPlayerColor(playerid, COLOR_GREEN);
SetPlayerVirtualWorld(playerid, 1);
SetPlayerSkin( playerid, 269 );//groove leader
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 100);
}
public C0(playerid)
{
new string[256];
format(string, sizeof(string), "~n~~n~~n~~g~ Wojna Gangow!!! ");
GameTextForAll(string, 8001, 3);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) WG40[i] = 0;
}
SetTimerEx("WGSTART",0001,0,"i",playerid);
}
public WGSTART(playerid)
{
if(ONWG[playerid] == 1)
{
TogglePlayerControllable(playerid, 1);
SetCameraBehindPlayer(playerid);
PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
}
}
if(strcmp(cmd, "/wg1", true) == 0 && IsPlayerAdmin(playerid))
{
SetTimer("C0",41000,0);
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) WG40[i] = 1, P30[i] = 1;
}
return 1;
}