All pastes #131782 Raw Edit

Untitled

public text v1 · immutable
#131782 ·published 2006-08-14 22:12 UTC
rendered paste body
    //------------------- /taxi
    if(strcmp(cmd, "/taxi", true) == 0) {

                  	    if(IsPlayerInCheckpoint(playerid)==0 || playerCheckpoint[playerid]!=CP_TAP && playerCheckpoint[playerid]!=CP_TBA) {
              	    if(playerCheckpoint[playerid]!=CP_TRE && playerCheckpoint[playerid]!=CP_TPD && playerCheckpoint[playerid]!=CP_CAL && playerCheckpoint[playerid]!=CP_TFD && playerCheckpoint[playerid]!=CP_TAM && playerCheckpoint[playerid]!=CP_TCP && playerCheckpoint[playerid]!=CP_TPP && playerCheckpoint[playerid]!=CP_TOS && playerCheckpoint[playerid]!=CP_TLS){
			SendClientMessage(playerid, COLOR_RED, "You must be at a taxi checkpoint to do /taxi..");
			return 1;
		}
		}
				    if(GetPlayerMoney(playerid) < 500) {
			SendClientMessage(playerid, COLOR_RED, "You don't have enough money!");
			return 1;
		}

		new pname[MAX_PLAYER_NAME];
		if (taxid[playerid]==-1){
		new e,f;
		for (e = 0, f = 100; e < f; e++)
                    if (taxid[e] != -1) {
	    	    if(playerCheckpoint[playerid]==CP_TAP){
                    format(string, sizeof(string), " %s wants a taxi at the airport.", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	  	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_TBA){
                    format(string, sizeof(string), " %s wants a taxi @ bank", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_TRE){
                    format(string, sizeof(string), " %s wants a taxi @ Redsands East.", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_CAL){
                    format(string, sizeof(string), " %s wants a taxi @ Caligulas.", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_TFD){
                    format(string, sizeof(string), " %s wants a taxi @ 4 dragons.", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_TAM){
                    format(string, sizeof(string), " %s wants a taxi @ ammunation.", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_TCP){
                    format(string, sizeof(string), " %s wants a taxi @ city planning.", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_TPP){
                    format(string, sizeof(string), " %s wants a taxi @ Pickle Pine.", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_TOS){
                    format(string, sizeof(string), " %s wants a taxi @ The Old Strip", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    } else
                    if(playerCheckpoint[playerid]==CP_TLS){
                    format(string, sizeof(string), " %s wants a taxi @ Linden Station.", pname);
                    SendClientMessage(e, COLOR_RED, string);
                    format(string, sizeof(string), " Your message is delivered.");
                    SendClientMessage(playerid, COLOR_GREEN, string);
	    	    taxiw[playerid]=1;
                    }
                    }
                    else{
                    format(string, sizeof(string), "There isn't a taxidriver.");
                    SendClientMessage(playerid, COLOR_RED, string);
                    }
	    	    }

		    else {
		    format(string, sizeof(string), " Jij bent zelf de taxichauffeur.");
                    SendClientMessage(playerid, COLOR_RED, string);
		    }

                return 1;
		}
          //------------------- /taxidriver
          if(strcmp(cmd, "/taxidriver", true) == 0) {
                  new k,l;
                  for (k = 0, l = 100; k < l; k++) {
                        if (taxid[k] == 1 ){
                        format(string, sizeof(string), " There is already a taxidriver.");
                    	SendClientMessage(playerid, COLOR_GREEN, string);
                        } else
			if (taxid[playerid] != 1 ){
			taxid[playerid]=1;
                        format(string, sizeof(string), " You are now the taxidriver.");
                        SendClientMessage(playerid, COLOR_GREEN, string);
                        //PutPlayerInVehicle(playerid, 208, 1);
                        }else{
                        format(string, sizeof(string), " You are already taxidriver.");
                        SendClientMessage(playerid, COLOR_RED, string);
                        }

                  return 1;
          }
          }