06.09.2009, 10:31
1.I have a problem with this script beacouse i want to introduce a condition when i type "/takeiron" in a checkpoint and the checkpoint after ai type "/takeiron" is disable to stop getting iron (/takeiron) and after ai buy a iron (1) say a message like "You can`t buy only 1 packet of Iron,go and sell it and back for another".Cand someboy help me pls 
2.In this script I want to put a condition to let you take a iron (/takeiron) after 20 minute after i sell another.Cand somebody help me pls

2.In this script I want to put a condition to let you take a iron (/takeiron) after 20 minute after i sell another.Cand somebody help me pls

Код:
if(strcmp(cmdtext,"/takeiron",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerInfo[playerid][pJob] = 17) { if(PlayerToPoint(3.0, playerid, -158.6855,-287.3434,3.9053)) { if(IsPlayerInVehicle(playerid, 35)) { if(PlayerToPoint(3.0, playerid, -158.6855,-287.3434,3.9053)) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1734.6135,183.0644,3.5547, 10.0); GivePlayerMoney(playerid, -200); return 1; } } else if(IsPlayerInVehicle(playerid, 36)) { if(PlayerToPoint(3.0, playerid, -158.6855,-287.3434,3.9053)) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1734.6135,183.0644,3.5547, 10.0); GivePlayerMoney(playerid, -200); return 1; } } else if(IsPlayerInVehicle(playerid, 37)) { if(PlayerToPoint(3.0, playerid, -158.6855,-287.3434,3.9053)) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid, -1734.6135,183.0644,3.5547, 10.0); GivePlayerMoney(playerid, -200); return 1; } } } } } }