new kapu; // új globális változó
kapu = CreateObject(988, -265.5, 1159.5999755859, 19.5, 0, 0, 270); //public OnGameModeInit alá
// public OnPlayerCommandText alá
if(!strcmp(cmdtext, \"/nyit\", true))
{
new namecs[24];
GetPlayerName(playerid, namecs, 24);
if(!strcmp(namecs, \"[TDC]Drift_ObiWan\", true)) {
MoveObject(kapu, -265.5, 1159.5999755859, 14.5, 2.00);
SendClientMessage(playerid, -1, \"Kinyitottad a kaput.\"); }
return 1;
}
if(!strcmp(cmdtext, \"/zár\", true))
{
new namecs[24];
GetPlayerName(playerid, namecs, 24);
if(!strcmp(namecs, \"[TDC]Drift_ObiWan\", true)) {
MoveObject(kapu, -265.5, 1159.5999755859, 19.5, 2.00);
SendClientMessage(playerid, -1, \"Bezártad a kaput.\"); }
return 1;
}