public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/Redbull", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522)) { if(GetPlayerMoney(playerid) >= 100) { GivePlayerMoney(playerid, -100); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER ); SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$"); } else { SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$"); } return 1; }
if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522))
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Redbull", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522));
{
if(GetPlayerMoney(playerid) >= 100)
{
GivePlayerMoney(playerid, -100);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER );
SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$");
}
else
{
SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522)) <<<<< THERE
|
CAn i see the whole code couse this what u show me isnt the whole code
|
#include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/Redbull", cmdtext, true, 10) == 0) { if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522)) { if(GetPlayerMoney(playerid) >= 100) { GivePlayerMoney(playerid, -100); SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER ); SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$"); } else { SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$"); } return 1; }
{
if (strcmp("/Redbull", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 1.5, 20.9480, 971.8395, 19.3522))
{
if(GetPlayerMoney(playerid) >= 100)
{
GivePlayerMoney(playerid, -100);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER );
SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$");
}
else
{
SendClientMessage(playerid, 0xFFFF00AA,"Redbull costed 100$");
}
return 1;
}
return 1;
}
}
pawn Код:
|