Quote:
Originally Posted by Gangster_
Ai ..
TOPO \/
pawn Код:
new pickup_A; new pickup_B;
no meu caso й um fs entaum se for gm so muda a public OnFilter para OnGame
pawn Код:
public OnFilterScriptInit() { print("\n--------------------------------------"); print(" "); print("--------------------------------------\n"); pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// DP: pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// DP: return 1; }
e aqui tbm \/
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickup_A) { SendClientMessage(playerid, Verde, "Subiu no Teto da DP"); SetPlayerPos(playerid,1569.6025,-1667.4752,28.3956); }
if(pickupid == pickup_B) { SendClientMessage(playerid, Verde, "Desceu do Teto da DP"); SetPlayerPos(playerid,1565.5808,-1689.9780,6.2188); } return 1; }
|
Isso й no GameModeInit:
pawn Код:
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" ");
print("--------------------------------------\n");
pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// DP:
pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// DP:
return 1;
}
serto й :
pawn Код:
public OnGameModeInit()
{
pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// DP:
pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// DP:
return 1;
}