Hallo alle Zusammen,
Ich zeig euch hier mal mein Gate script.
if (strcmp(cmd, "/auf", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pAdmin] >= 4)
MoveObject(PDGATE,228.26127624512, 164.13563537598, 1003.3153686523,4);
GetPlayerName(playerid, sendername, sizeof(sendername));
new formater[128];
format(formater,sizeof(formater),"%s Willkommen in der Base!",sendername);
SendClientMessage(playerid, COLOR_YELLOW, formater);
return 1;
}
if (strcmp(cmd, "/zu", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pAdmin] >= 4)
MoveObject(PDGATE,228.28379821777, 160.29220581055, 1003.3153686523,4);
return 1;
}
if (strcmp(cmdtext, "/auf", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
MoveObject(kenny, -2432.849365, 496.752716, 31.858955,4);
GetPlayerName(playerid, sendername, sizeof(sendername));
new formater[128];
format(formater,sizeof(formater),"Hallo %s ! Willkommen in der Base",sendername);
SendClientMessage(playerid, COLOR_YELLOW, formater);
return 1;
}
if (strcmp(cmdtext, "/zu", true) == 0){
if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)
MoveObject(kenny, -2432.849365, 496.752716, 38.108955,4);
return 1;
}
Was will ich haben.
Ich will haben dass mann an einer bestimmten stelle stehen muss um das Gate zu öffnen.
Und will einen einzelnen befehl haben, zb /gate um es auf und zu zu machen....
Im moment ist es ja /auf /zu
Hoffe jemand nimmt sich die Zeit..
mfg
BillyGirl