Most õszintén. Mi csináljuk meg a gamemododat??!!
Nesze itt egy, Defensive RPG-hez csináltam még régebben
new vonszolastimer[MAX_PLAYERS];
new vonszolja[MAX_PLAYERS];
CMD:vonszol(playerid,params[])
{
if(pInfo[playerid][pFrakcio] == RENDOR || pInfo[playerid][pFrakcio] == RFONOK) {
new kit;
if(sscanf(params,\"d\",kit)) return SendClientMessage(playerid,-1,\"Kit akarsz vonszolni? (/vonszol ID)\");
if(GetPlayerSpecialAction(kit) != SPECIAL_ACTION_CUFFED) return SendClientMessage(playerid,-1,\"A játékos nincs megbilincselve!!!\");
vonszolastimer[playerid] = SetTimerEx(\"Vonszol\",1000,true,\"ii\",playerid,kit);
SendClientMessage(playerid,-1, \"[Holiday-RP] Vonszolod.. A vonszolás megállításhoz tedd be egy rendõrkocsiba!\");
vonszolja[playerid] = kit;
} else return SendClientMessage(playerid,-1,\"Nem vagy rendõr!\");
return 1;
}
CMD:kocsiberak(playerid,params[])
{
if(pInfo[playerid][pFrakcio] == RENDOR || pInfo[playerid][pFrakcio] == RFONOK) {
if(vonszolja[playerid] == 0) return SendClientMessage(playerid,-1,\"Nem vonszolsz senkit!\");
KillTimer(vonszolastimer[playerid]);
for(new i; i < MAX_VEHICLES; i++)
{
new Float:x,Float:y,Float:z; GetVehiclePos(i,x,y,z);
if (IsPlayerInRangeOfPoint(playerid, 5,x,y,z) && RendorKocsik(i))
{
PutPlayerInVehicle(playerid,i,3);
}
}
SendClientMessage(playerid,-1, \"Beraktad..\");
vonszolja[playerid] = 0;
} else return SendClientMessage(playerid,-1,\"Nem vagy rendõr!\");
return 1;
}
forward Vonszol(kivonszolja,kitvonszol);
public Vonszol(kivonszolja,kitvonszol)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(kivonszolja,x,y,z);
SetPlayerPos(kitvonszol,x,y+2,z);
return 1;
}
new vonszolastimer[MAX_PLAYERS];
new vonszolja[MAX_PLAYERS];
CMD:vonszol(playerid,params[])
{
if(pInfo[playerid][pFrakcio] == RENDOR || pInfo[playerid][pFrakcio] == RFONOK) {
new kit;
if(sscanf(params,\"d\",kit)) return SendClientMessage(playerid,-1,\"Kit akarsz vonszolni? (/vonszol ID)\");
if(GetPlayerSpecialAction(kit) != SPECIAL_ACTION_CUFFED) return SendClientMessage(playerid,-1,\"A játékos nincs megbilincselve!!!\");
vonszolastimer[playerid] = SetTimerEx(\"Vonszol\",1000,true,\"ii\",playerid,kit);
SendClientMessage(playerid,-1, \"[Holiday-RP] Vonszolod.. A vonszolás megállításhoz /elenged!\");
vonszolja[playerid] = kit;
} else return SendClientMessage(playerid,-1,\"Nem vagy rendõr!\");
return 1;
}
CMD:elenged(playerid,params[])
{
if(pInfo[playerid][pFrakcio] == RENDOR || pInfo[playerid][pFrakcio] == RFONOK) {
if(vonszolja[playerid] == 0) return SendClientMessage(playerid,-1,\"Nem vonszolsz senkit!\");
KillTimer(vonszolastimer[playerid]);
SendClientMessage(playerid,-1, \"Elengedted..\");
vonszolja[playerid] = 0;
} else return SendClientMessage(playerid,-1,\"Nem vagy rendõr!\");
return 1;
}
forward Vonszol(kivonszolja,kitvonszol);
public Vonszol(kivonszolja,kitvonszol)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(kivonszolja,x,y,z);
SetPlayerPos(kitvonszol,x,y+2,z);
return 1;
}
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(1295) : warning 217: loose indentation
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(1297) : warning 217: loose indentation
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2399) : warning 209: function \"cmd_vonszolas\" should return a value
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2399) : error 010: invalid function or declaration
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2400) : error 010: invalid function or declaration
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2409) : warning 209: function \"cmd_befejez\" should return a value
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2409) : error 010: invalid function or declaration
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2410) : error 010: invalid function or declaration
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2485) : warning 217: loose indentation
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2492) : warning 217: loose indentation
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2501) : warning 217: loose indentation
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(2573) : warning 217: loose indentation
C:\\Users\\Sanyi\\Desktop\\RP\\gamemodes\\rpmod.pwn(14822) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.