Hi,
ich habe ein Pickup Problem habe das jetzt zum 1 mal gemacht und habe jetzt das Problem das nur das Pickup 2 funzt aber eine ganz falsche Meldung zu Pickup 2 kommt. Guckt es euch einfahc an es funzt net. Wenn ich in die restlichen 3 gehe kommt gar keine meldung warum?
Script:
new a;
new b;
new c;
new d;
a = AddStaticPickup(1239,105,2464.8093,-1659.0591,13.2929); //Grove
b = AddStaticPickup(1239,280,1538.1741,-1627.1244,13.3828); // Police
c = AddStaticPickup(1239,280,1549.8143,-1676.2764,15.1366); // Los Santos PD
d = AddStaticPickup(1239,280,1588.4543,-1636.3861,13.4052); // Garage
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == a)
{
GameTextForPlayer(playerid,"Welcome to Grovestreet",7000,6);
SendClientMessage(playerid,COLOR_YELLOW,"Commands: /commands /homiebase");
}
if(pickupid == b)
{
GameTextForPlayer(playerid,"Welcome to Los Santos Policedepartment",7000,6);
SendClientMessage(playerid,COLOR_YELLOW,"Commands: /commands /copcmds");
SendClientMessage(playerid,COLOR_YELLOW,"Gates: /pdgateop /pdgatcl");
}
if(pickupid == c)
{
GameTextForPlayer(playerid,"Welcome to Los Santos Police Department",7000,6);
SendClientMessage(playerid,COLOR_YELLOW,"Commands: /commands /copcmds");
}
if(pickupid == d)
{
GameTextForPlayer(playerid,"Police Department Garage",7000,6);
SendClientMessage(playerid,COLOR_YELLOW,"Commands: /commands /copcmds");
SendClientMessage(playerid,COLOR_YELLOW,"Garagegate: /pdgarop /pdgarcl");
}
return 1;
}
MfG ~Luka~