ja kann man
z.b. vom GM gf_suchtis-v601 (zu loaden bei Database)
if(strcmp(cmd, "/nagelbrett", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] != 1 && PlayerInfo[playerid][pMember] != 12 && PlayerInfo[playerid][pLeader] != 1 && PlayerInfo[playerid][pLeader] != 12)
{
SendClientMessage(playerid, COLOR_GRAD2, "Du bist kein Cop");
return 1;
}
if(PlayerInfo[playerid][pRank] < 4)
{
SendClientMessage(playerid, COLOR_GRAD2, "Dein Rank ist zu niedrig!");
return 1;
}
if(Nagelbrett[playerid] == 0)
{
new Float:x_, Float:y_, Float:z_,Float:r_;
GetPlayerPos(playerid, x_, y_, z_);
GetPlayerFacingAngle(playerid, r_);
SetTimerEx("NagelBrett", 5000, 0, "iffff", playerid, x_, y_, z_, r_);
SendClientMessage(playerid, COLOR_YELLOW,"Sperre wird aufgebaut...");
Nagelbrett[playerid] = 1;
}
else if(Nagelbrett[playerid] != 0 && Nagelbrett[playerid] != 1)
{
DestroyObject(Nagelbrett[playerid]);
Nagelbrett[playerid] = 0;
SendClientMessage(playerid, COLOR_YELLOW, "Sperre abgebaut!");
}
}
return 1;
}