if(pickupid == SomePickup)
{
// Depending on what code goes here, yes.
return 0/1; //does it makes any difference here, if I return 0 or return 1?)
}
public OnPlayerCommandText(playerid, cmdtext[])
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
printf("Command: %s: %s" ,pName, cmdtext);// Prints for example: Command: [NWA]Hannes: /kickme
return 0/1; //If you return 0, it will only print for commands in this script. If you return 1, it will print for all scripts that uses commands.
}
|
Originally Posted by SiJ
Ok, but how about OnPlayerPickupPickUp?
|
OnPlayerPickupPickup(playerid, pickupid)
{
SetPlayerArmour(playerid, 100);
GameTextForPlayer(playerid, "~b~~h~~h~You got armour!", 3000, 3);
return 0/1;// Returning 0 Only gives armour for pickups in this script. Returning 1 gives armour for pickups in all scripts on server.
}
|
Originally Posted by [NWA
Hannes ]
Quote:
Код:
OnPlayerPickupPickup(playerid, pickupid)
{
SetPlayerArmour(playerid, 100);
GameTextForPlayer(playerid, "~b~~h~~h~You got armour!", 3000, 3);
return 0/1;// Returning 0 Only gives armour for pickups in this script. Returning 1 gives armour for pickups in all scripts on server.
}
|