Skripta koju koristi Moj mod
Problem Kako da napravim kad je gs ili admin na duznosti da pise napr admin na duznosti ne ne ometaj ili gs na duznosti .... hitno pomoc
Dio skripte komande //
[pomoc] Gs/admin duty
968
pregleda
11
postova
31. Jan. 2012.
Koristi Attach3DTextLabelToPlayer ( http://wiki.sa-mp.com/wiki/Attach3DTextLabelToPlayer )
31. Jan. 2012.
u komandu dodaj /aon ili kak imas dodaj
a u /aoff dodaj
i na pocetku moda dodaj tam di imas new
ako ti nije nes jasno daj komandu pa ti ja ubacim i na taj princip i onda radis za GS duty
Quote
playertextid = Create3DTextLabel("Admin na Duznosti! Ne ometaj!",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(playertextid , playerid, 0.0, 0.0, 0.7);
Attach3DTextLabelToPlayer(playertextid , playerid, 0.0, 0.0, 0.7);
a u /aoff dodaj
Quote
Delete3DTextLabel(playertextid);
i na pocetku moda dodaj tam di imas new
Quote
new Text3D:playertextid
ako ti nije nes jasno daj komandu pa ti ja ubacim i na taj princip i onda radis za GS duty
31. Jan. 2012.
EVO Gdje ovdje da dodem mozete mi vi molim vas hitno mi je !
if(strcmp(cmd, "/aon", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}je sada na duznosti",sendername);
BroadCast(SVETLOPLAVA, string);
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
playertextid = CreatePlayer3DTextLabel(playerid,"Admin na duznosti! (Ne Ometaj!)",SVETLOPLAVA,fa,fy,fu,40.0,INVALID_PLAYER_ID, playerid);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"BI.RP{FFFFFF}!) Nisi admin!");
}
return 1;
}
if(strcmp(cmd, "/aoff", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
BroadCast(SVETLOPLAVA, string);
DeletePlayer3DTextLabel(playerid, playertextid);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"BI.RP{FFFFFF}!) Nisi admin!");
}
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
BroadCast(ZELENKASTA, string);
new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
playertextidgs = CreatePlayer3DTextLabel(playerid,"GameSage na duznosti! (Ne Ometaj!)",ZELENKASTA2,gfa,gfy,gfu,40.0,INVALID_PLAYER_ID, playerid);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"BI.RP{FFFFFF}!) Nisi GameSage!");
}
return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
BroadCast(ZELENKASTA, string);
DeletePlayer3DTextLabel(playerid, playertextidgs);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"BI.RP{FFFFFF}!) Nisi GameSage!");
}
return 1;
}31. Jan. 2012.
EVO Gdje ovdje da dodem mozete mi vi molim vas hitno mi je !
Tako stavi ...
EDIT: Takodje na pocetak :
EDIT2 : Ispravio sam kod,nije mi bio tacan ,sada radi sigurno ! 😉
if(strcmp(cmd, "/aon", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}je sada na duznosti",sendername);
BroadCast(SVETLOPLAVA, string);
new Float:fa, Float:fy, Float:fu;
GetPlayerPos( playerid, fa, fy, fu );
playertextid = Create3DTextLabel("Admin na Duznosti! (ne ometaj)!",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(playertextid , playerid, 0.0, 0.0, 0.7);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"BI.RP{FFFFFF}!) Nisi admin!");
}
return 1;
}
if(strcmp(cmd, "/aoff", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
Delete3DTextLabel(playertextid );
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Admin {FFFFFF}%s {00C0FF}vise nije na duznosti!",sendername);
BroadCast(SVETLOPLAVA, string);
DeletePlayer3DTextLabel(playerid, playertextid);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"BI.RP{FFFFFF}!) Nisi admin!");
}
return 1;
}
if(strcmp(cmd, "/gson", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 1000.0);
SetPlayerHealth(playerid, 1000.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"je sada na duznosti",sendername);
BroadCast(ZELENKASTA, string);
new Float:gfa, Float:gfy, Float:gfu;
GetPlayerPos( playerid, gfa, gfy, gfu );
playertextid2 = Create3DTextLabel("Admin na Duznosti! (ne ometaj)!",0x008080FF,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(playertextid2 , playerid, 0.0, 0.0, 0.7);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"BI.RP{FFFFFF}!) Nisi GameSage!");
}
return 1;
}
if(strcmp(cmd, "/gsoff", true) == 0)
{
if (PlayerInfo >= 1)
{
SetPlayerArmour(playerid, 0.0);
SetPlayerHealth(playerid, 100.0);
Delete3DTextLabel(playertextid2 );
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "GameSage {FFFFFF}%s "COL_ZELENA"vise nije na duznosti!",sendername);
BroadCast(ZELENKASTA, string);
DeletePlayer3DTextLabel(playerid, playertextidgs);
return 1;
}
else
{
SendClientMessage(playerid, WHITE, "("COL_RED"BI.RP{FFFFFF}!) Nisi GameSage!");
}
return 1;
}Tako stavi ...
EDIT: Takodje na pocetak :
new Text3D:playertextid ;
new Text3D:playertextid2 ;EDIT2 : Ispravio sam kod,nije mi bio tacan ,sada radi sigurno ! 😉
31. Jan. 2012.
Evo ovo mi izbaci mozel mi neko reci dje je greskla
gamemodes\mojmod.pwn(41156) : warning 217: loose indentation
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : error 028: invalid subscript (not an array or too many subscripts): "playertextid"
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : warning 215: expression has no effect
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : error 001: expected token: ";", but found "]"
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : error 029: invalid expression, assumed zero
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : fatal error 107: too many error messages on one line31. Jan. 2012.
Kunna- wrote on January 31, 2012, 8:03 pm:
Evo ovo mi izbaci mozel mi neko reci dje je greskla
gamemodes\mojmod.pwn(41156) : warning 217: loose indentation
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : error 028: invalid subscript (not an array or too many subscripts): "playertextid"
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : warning 215: expression has no effect
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : error 001: expected token: ";", but found "]"
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : error 029: invalid expression, assumed zero
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41167) : fatal error 107: too many error messages on one lineDaj mi liniju...
31. Jan. 2012.
sad sam nesta radio msm popravljo i evo sta mi sad izbaci
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41156) : warning 217: loose indentation
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41168) : warning 217: loose indentation
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41169) : warning 217: loose indentation
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41177) : warning 217: loose indentation
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41187) : error 035: argument type mismatch (argument 2)
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41209) : warning 217: loose indentation
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(41210) : warning 217: loose indentation
C:\Users\kenan\Desktop\smorio sam se\gamemodes\mojmod.pwn(72754) : warning 203: symbol is never used: "playertextid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Godfather
Novi Član
240 / 250 XP
🌱Početnik(0)
2,079
Postovi:
24
Teme:
Pridružio se:Feb. 2011
1. Feb. 2012.
StjepanS krivo ovak otreba da stavi :
takoder koristi trazilicu imaa 5 tema u vezi istoga samo potrazi ..
new Text3D:playertextid ;takoder koristi trazilicu imaa 5 tema u vezi istoga samo potrazi ..
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava