GTAONLINE.PL
Użytkownicy
Grupy
FAQ
Regulamin
Piwa
Reklama/Vip
Raporty
Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: instrukcja
1.
instrukcja warunkowa if
Czesc chce zrobic instrukcje warunkowa if ze jesli gracz jest w poje?dzie o tym ID to wy?wietl jaki? tekst (strona clienta)
2.
Instrukcja Warunkowa.
Kod:
function onPlayerLogin()
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("policja")) then
setPlayerTeam(source, policja)
else
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("wojsko")) then
setPlayerTeam(source, wojsko)
else
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("kl")) then
setPlayerTeam(source, kl)
else
setPlayerTeam ( source, pilot )
end
end
end
end
end
end
addEventHandler ( "onPlayerLogin", getRootElement(), onPlayerLogin )
Czy to by dzia?a?o ?