Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!isDedicated) then {waitUntil {!isNull player && isPlayer player};};
- if(!isDedicated) then {
- packet = [player, (getplayerUID player)];
- publicVariableServer "packet";
- };
- if(isDedicated) then {
- "packet" addPublicVariableEventHandler {
- _pcid = owner (_this select 1 select 0);
- _pid = _this select 1 select 1;
- _name = profileName _this select 1 select 0;
- _query = format["SELECT pid FROM instructors WHERE name = '%1' AND pid = '%2'", _name, _pid];
- //Runs The Query
- _verifyUser = "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQLCommand ['training', '%1']", _query];
- packet = _verifyUser;
- _pcid publicVariableClient "packet";
- };
- }else{
- "packet" addPublicVariableEventHandler {
- _verifyUser = _this select 1;
- hint format["%1" typeName _verifyUser];
- /*if((getplayerUID player) == _verifyUser) then {
- hint "You are an Instructor!!";
- };*/
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement