pickup_A1 = CreatePickup(1275, 1, 253.3719,78.0132,1003.6406);//Pickup Skin
pickup_A2 = CreatePickup(1275, 1, 254.7950,78.3707,1003.6406);//Pickup Skin
pickup_A3 = CreatePickup(1275, 1, 255.2836,76.5384,1003.6406);//Pickup Skin
if (pickupid == pickup_A2)
SendClientMessage(playerid, Verde, "Skin de Cop 3");
SetPlayerSkin(playerid,282);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if (pickupid == pickup_A3)
SendClientMessage(playerid, Verde, "Skin de Cop 4");
SetPlayerSkin(playerid,284);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if (pickupid == pickup_A1)
SendClientMessage(playerid, Verde, "Skin de Cop 2");
SetPlayerSkin(playerid,281);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
new pickup_A1;
new pickup_A2;
new pickup_A3;
pickup_A1 = CreatePickup(1275, 1, 253.3719,78.0132,1003.6406);//Pickup Skin
pickup_A2 = CreatePickup(1275, 1, 254.7950,78.3707,1003.6406);//Pickup Skin
pickup_A3 = CreatePickup(1275, 1, 255.2836,76.5384,1003.6406);//Pickup Skin
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == pickup_A1)
{
SendClientMessage(playerid, Verde, "Skin de Cop 2");
SetPlayerSkin(playerid,281);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if (pickupid == pickup_A2)
{
SendClientMessage(playerid, Verde, "Skin de Cop 3");
SetPlayerSkin(playerid,282);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if (pickupid == pickup_A3)
{
SendClientMessage(playerid, Verde, "Skin de Cop 4");
SetPlayerSkin(playerid,284);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
return 1;
}
Originally Posted by russooooo
No topo tens que fazer:
pawn Код:
pawn Код:
pawn Код:
|
#include <a_samp>
#define Verde 0x33AA33AA
new pickup_A;
new pickup_B;
new pickup_C;
new pickup_D;
new pickup_A1;
new pickup_A2;
new pickup_A3;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" ");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
public OnGameModeInit()
{
pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// Hospital:
pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// Governo:
pickup_C = CreatePickup(1239, 1, 1562.9734,-1667.1722,28.3956);//Pickup ARMAS
pickup_D = CreatePickup(1275, 1, 253.7077,76.3095,1003.6406);//Pickup Skin
pickup_A1 = CreatePickup(1275, 1, 253.3719,78.0132,1003.6406);//Pickup Skin
pickup_A2 = CreatePickup(1275, 1, 254.7950,78.3707,1003.6406);//Pickup Skin
pickup_A3 = CreatePickup(1275, 1, 255.2836,76.5384,1003.6406);//Pickup Skin
return 1;
}
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);
}
if(pickupid == pickup_C)
{
SendClientMessage(playerid, Verde, "Pegou as Armas :D");
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if(pickupid == pickup_D)
{
SendClientMessage(playerid, Verde, "Skin de Cop");
SetPlayerSkin(playerid,280);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if(pickupid == pickup_A1)
{
SendClientMessage(playerid, Verde, "Skin de Cop 2");
SetPlayerSkin(playerid,281);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if(pickupid == pickup_A2)
{
SendClientMessage(playerid, Verde, "Skin de Cop 3");
SetPlayerSkin(playerid,282);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if(pickupid == pickup_A3)
{
SendClientMessage(playerid, Verde, "Skin de Cop 4");
SetPlayerSkin(playerid,284);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
return 1;
}
#include <a_samp>
#define Verde 0x33AA33AA
new pickup_A;
new pickup_B;
new pickup_C;
new pickup_D;
new pickup_A1;
new pickup_A2;
new pickup_A3;
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" ");
print("--------------------------------------\n");
pickup_A = CreatePickup(1239, 1, 1568.5808,-1689.9780,6.2188);// Hospital:
pickup_B = CreatePickup(1239, 1, 1564.9734,-1667.1722,28.3956);// Governo:
pickup_C = CreatePickup(1239, 1, 1562.9734,-1667.1722,28.3956);//Pickup ARMAS
pickup_D = CreatePickup(1275, 1, 253.7077,76.3095,1003.6406);//Pickup Skin
pickup_A1 = CreatePickup(1275, 1, 253.3719,78.0132,1003.6406);//Pickup Skin
pickup_A2 = CreatePickup(1275, 1, 254.7950,78.3707,1003.6406);//Pickup Skin
pickup_A3 = CreatePickup(1275, 1, 255.2836,76.5384,1003.6406);//Pickup Skin
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#endif
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);
}
if(pickupid == pickup_C)
{
SendClientMessage(playerid, Verde, "Pegou as Armas :D");
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if(pickupid == pickup_D)
{
SendClientMessage(playerid, Verde, "Skin de Cop");
SetPlayerSkin(playerid,280);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if(pickupid == pickup_A1)
{
SendClientMessage(playerid, Verde, "Skin de Cop 2");
SetPlayerSkin(playerid,281);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if(pickupid == pickup_A2)
{
SendClientMessage(playerid, Verde, "Skin de Cop 3");
SetPlayerSkin(playerid,282);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
if(pickupid == pickup_A3)
{
SendClientMessage(playerid, Verde, "Skin de Cop 4");
SetPlayerSkin(playerid,284);
GivePlayerWeapon(playerid, 27, 9999);
GivePlayerWeapon(playerid, 29, 9999);
GivePlayerWeapon(playerid, 24, 9999);
GivePlayerWeapon(playerid, 31, 9999);
GivePlayerWeapon(playerid, 17, 9999);
GivePlayerWeapon(playerid, 34, 9999);
GivePlayerWeapon(playerid, 39, 9999);
}
return 1;
}
#define FILTERSCRIPT