21.01.2013, 21:52
Right I have been looking at this code
I was wondering how would I use this code but put use more than one, because if I did this -
Would it not overlap with each other. Please leave any help below
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
// Declare 3 float variables to store the X, Y and Z coordinates in
new Float:x, Float:y, Float:z;
// Use GetPlayerPos, passing the 3 float variables we just created
GetPlayerPos(playerid, x, y, z);
// Create a cash pickup at the player's position
CreatePickup(1212, 4, x, y, z, GetPlayerVirtualWorld(playerid));
return 1;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
// Declare 3 float variables to store the X, Y and Z coordinates in
new Float:x, Float:y, Float:z;
// Use GetPlayerPos, passing the 3 float variables we just created
GetPlayerPos(playerid, x, y, z);
// Create a cash pickup at the player's position
CreatePickup(1212, 4, x, y, z, GetPlayerVirtualWorld(playerid));
return 1;
}
public OnPlayerSpawn(playerid, killerid, reason)
{
// Declare 3 float variables to store the X, Y and Z coordinates in
new Float:x, Float:y, Float:z;
// Use GetPlayerPos, passing the 3 float variables we just created
GetPlayerPos(playerid, x, y, z);
// Create a cash pickup at the player's position
CreatePickup(1212, 4, x, y, z, GetPlayerVirtualWorld(playerid));
return 1;
}