28.07.2015, 12:54
Hello, i want to make house owner's to open the gate... i have now for Player Name example:
In house enum i have
HouseInfo[idhouse][kOwnerName] is checking PlayerName
Код:
YCMD:test(playerid,params[],help) { #pragma unused help #pragma unused params if(!strcmp(PlayerName(playerid),"Test",true)) { if(PlayerToPoint(25.0, playerid,334.6119080,-2217.3454590,0)) { MoveDynamicObject(TestGate,334.6119080,-2217.3454590,0,3); } } else { SCM(playerid,Red," [!]"); } return 1; }
HouseInfo[idhouse][kOwnerName] is checking PlayerName